3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Toto { public static function test() { echo('toto est content'); } } Toto::test(); $toto = new Toto(); $toto->test();

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.70.0070.00716.61
8.3.60.0090.00618.18
8.3.50.0120.00721.92
8.3.40.0120.00418.89
8.3.30.0030.01019.10
8.3.20.0050.00220.17
8.3.10.0040.00421.75
8.3.00.0040.00419.05
8.2.190.0130.01018.18
8.2.180.0150.00018.16
8.2.170.0150.00022.96
8.2.160.0060.00920.43
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0040.00419.52
8.2.110.0000.00920.45
8.2.100.0060.00617.91
8.2.90.0040.00417.75
8.2.80.0080.00018.75
8.2.70.0040.00418.01
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0020.00519.34
8.2.30.0040.00419.28
8.2.20.0000.00717.60
8.2.10.0050.00217.95
8.2.00.0040.00417.49
8.1.280.0120.00925.92
8.1.270.0080.00018.79
8.1.260.0050.00526.35
8.1.250.0070.00028.09
8.1.240.0060.00322.09
8.1.230.0040.00722.15
8.1.220.0060.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.00
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00618.58
8.1.160.0000.00718.72
8.1.150.0000.00718.80
8.1.140.0000.00717.44
8.1.130.0000.00717.86
8.1.120.0000.00717.44
8.1.110.0070.00017.41
8.1.100.0040.00417.20
8.1.90.0000.00717.31
8.1.80.0070.00017.44
8.1.70.0030.00317.25
8.1.60.0000.00817.60
8.1.50.0080.00017.38
8.1.40.0040.00417.52
8.1.30.0030.00517.59
8.1.20.0040.00417.55
8.1.10.0070.00017.56
8.1.00.0030.00617.49
8.0.300.0000.00718.77
8.0.290.0000.00716.63
8.0.280.0070.00018.36
8.0.270.0030.00317.25
8.0.260.0000.00617.16
8.0.250.0060.00016.92
8.0.240.0050.00216.89
8.0.230.0070.00016.91
8.0.220.0000.00716.79
8.0.210.0030.00316.70
8.0.200.0000.00716.78
8.0.190.0040.00416.91
8.0.180.0040.00416.82
8.0.170.0000.00716.90
8.0.160.0070.00016.85
8.0.150.0030.00316.80
8.0.140.0030.00416.74
8.0.130.0000.00613.31
8.0.120.0000.00816.81
8.0.110.0040.00416.80
8.0.100.0040.00416.81
8.0.90.0000.00816.70
8.0.80.0160.00616.82
8.0.70.0050.00216.82
8.0.60.0070.00016.70
8.0.50.0030.00516.64
8.0.30.0160.00317.04
8.0.20.0100.00917.40
8.0.10.0030.00316.86
8.0.00.0120.00716.63
7.4.330.0050.00015.03
7.4.320.0030.00316.45
7.4.300.0040.00416.61
7.4.290.0030.00316.57
7.4.280.0000.00716.58
7.4.270.0030.00316.51
7.4.260.0050.00216.50
7.4.250.0000.00716.36
7.4.240.0020.00516.45
7.4.230.0000.00716.25
7.4.220.0090.01316.56
7.4.210.0140.00716.57
7.4.200.0000.00716.61
7.4.160.0160.00316.58
7.4.150.0140.00417.40
7.4.140.0120.00817.86
7.4.130.0120.00716.53
7.4.120.0090.00916.31
7.4.110.0070.01016.42
7.4.100.0120.00616.57
7.4.90.0030.01316.56
7.4.80.0030.01319.39
7.4.70.0080.00816.49
7.4.60.0130.00316.56
7.4.50.0000.00616.45
7.4.40.0100.01016.48
7.4.30.0030.01416.46
7.4.00.0100.00714.90
7.3.330.0000.00613.21
7.3.320.0000.00513.20
7.3.310.0040.00416.09
7.3.300.0030.00316.24
7.3.290.0080.00816.23
7.3.280.0050.01216.23
7.3.270.0000.01617.40
7.3.260.0040.01316.30
7.3.250.0100.00716.29
7.3.240.0080.00816.58
7.3.230.0140.00916.40
7.3.210.0120.00316.24
7.3.200.0040.01719.39
7.3.190.0040.01216.23
7.3.180.0110.00416.48
7.3.170.0060.01816.30
7.3.160.0080.00816.26
7.3.120.0080.01114.72
7.3.110.0110.00614.77
7.3.100.0080.00614.68
7.3.90.0000.01114.74
7.3.80.0030.01014.83
7.3.70.0000.01014.74
7.3.60.0000.01614.64
7.3.50.0080.00414.66
7.3.40.0030.01214.65
7.3.30.0120.00314.67
7.3.20.0080.00816.38
7.3.10.0090.00916.55
7.3.00.0070.01016.42
7.2.330.0040.01416.71
7.2.320.0130.00316.60
7.2.310.0060.01116.40
7.2.300.0070.01016.44
7.2.290.0100.00716.75
7.2.250.0110.00815.09
7.2.240.0040.01614.90
7.2.230.0120.00315.01
7.2.220.0090.00314.75
7.2.210.0030.00615.01
7.2.200.0130.00314.96
7.2.190.0040.00814.95
7.2.180.0060.00614.70
7.2.170.0100.00714.82
7.2.00.0000.01219.13
7.1.330.0040.01115.70
7.1.320.0070.00715.39
7.1.310.0080.00515.63
7.1.300.0040.01215.55
7.1.290.0060.00615.54
7.1.280.0140.00015.57
7.1.270.0060.00915.48
7.1.260.0120.00415.43
7.1.100.0030.00717.98
7.1.70.0040.00416.98
7.1.60.0070.01019.22
7.1.50.0030.01016.91
7.1.00.0070.07022.28
7.0.200.0000.00716.68
7.0.140.0030.03322.21
7.0.60.0000.05319.78
7.0.50.0100.07317.86
7.0.40.0070.09020.04
7.0.30.0100.04720.13
7.0.20.0270.06320.23
7.0.10.0030.04320.19
7.0.00.0030.08720.09
5.6.280.0070.07321.05
5.6.210.0030.05020.53
5.6.200.0130.04718.16
5.6.190.0130.08720.62
5.6.180.0430.07720.47
5.6.170.0300.07320.47
5.6.160.0070.03720.71
5.6.150.0070.05018.18
5.6.140.0030.09018.28
5.6.130.0000.04318.13
5.6.120.0030.08020.98
5.6.110.0070.08321.11
5.6.100.0170.07321.00
5.6.90.0030.08720.88
5.6.80.0100.06720.45
5.5.350.0200.08020.44
5.5.340.0000.05017.95
5.5.330.0030.07720.36
5.5.320.0330.05020.30
5.5.310.0300.06020.26
5.5.300.0000.05717.95
5.5.290.0100.03717.94
5.5.280.0000.04320.82
5.5.270.0070.07720.72
5.5.260.0030.08320.80
5.5.250.0030.08020.66
5.5.240.0000.04020.26
5.4.450.0200.06019.63
5.4.440.0600.06319.50
5.4.430.0530.07719.62
5.4.420.0530.05319.58
5.4.410.0630.05319.05
5.4.400.0300.05319.32
5.4.390.0670.05018.89
5.4.380.0370.04718.69
5.4.370.0270.04718.46
5.4.360.0170.05018.58
5.4.350.0170.07018.72
5.4.340.0270.05318.68
5.4.320.0400.05318.71
5.4.310.0170.07318.79
5.4.300.0170.05318.76
5.4.290.0200.06318.53
5.4.280.0200.07318.55
5.4.270.0200.05718.46
5.4.260.0230.06318.46
5.4.250.0170.06018.77
5.4.240.0270.04718.73
5.4.230.0270.05318.51
5.4.220.0230.06018.73
5.4.210.0270.04318.60
5.4.200.0170.05016.63
5.4.190.0300.04318.57
5.4.180.0230.04718.74
5.4.170.0130.05718.64
5.4.160.0070.06318.73
5.4.150.0130.05718.63
5.4.140.0130.05316.22
5.4.130.0170.05316.18
5.4.120.0230.04716.45
5.4.110.0230.04316.20
5.4.100.0230.04316.25
5.4.90.0100.05716.41
5.4.80.0130.05716.18
5.4.70.0130.06716.24
5.4.60.0170.05716.39
5.4.50.0170.07016.18
5.4.40.0230.04316.29
5.4.30.0170.05016.30
5.4.20.0200.05016.24
5.4.10.0230.04716.16
5.4.00.0230.05315.89
5.3.290.0100.06714.79
5.3.280.0230.06714.69
5.3.270.0200.07314.77
5.3.260.0230.07014.63
5.3.250.0270.06714.62
5.3.240.0270.06714.60
5.3.230.0230.05714.79
5.3.220.0200.05014.55
5.3.210.0200.05314.61
5.3.200.0230.04314.61
5.3.190.0130.07714.79
5.3.180.0100.06714.61
5.3.170.0270.05314.74
5.3.160.0330.04314.78
5.3.150.0170.05314.61
5.3.140.0170.05014.68
5.3.130.0200.05314.71
5.3.120.0070.06714.68
5.3.110.0330.05714.59
5.3.100.0170.05314.13
5.3.90.0170.05314.13
5.3.80.0270.04314.14
5.3.70.0200.04714.14
5.3.60.0100.05714.13
5.3.50.0230.06014.02
5.3.40.0230.06314.05
5.3.30.0130.05314.02
5.3.20.0230.08013.76
5.3.10.0270.07313.86
5.3.00.0200.04713.66
5.2.170.0130.05711.16
5.2.160.0170.04711.16
5.2.150.0130.05711.24
5.2.140.0070.05011.35
5.2.130.0130.04711.18
5.2.120.0200.03311.08
5.2.110.0200.03311.13
5.2.100.0200.03311.13
5.2.90.0170.05711.12
5.2.80.0200.05311.22
5.2.70.0100.04711.13
5.2.60.0200.05311.13
5.2.50.0170.05311.12
5.2.40.0130.04310.99
5.2.30.0170.04010.98
5.2.20.0200.04311.17
5.2.10.0130.05310.98
5.2.00.0100.06010.93
5.1.60.0070.05010.13
5.1.50.0170.04310.03
5.1.40.0130.03310.10
5.1.30.0170.03010.34
5.1.20.0030.04710.52
5.1.10.0170.04010.21
5.1.00.0230.02710.27
5.0.50.0170.0208.75
5.0.40.0100.0478.45
5.0.30.0100.0478.32
5.0.20.0100.0338.20
5.0.10.0030.0408.20
5.0.00.0170.0408.20
4.4.90.0100.0276.88
4.4.80.0130.0236.88
4.4.70.0070.0306.88
4.4.60.0130.0236.88
4.4.50.0100.0276.88
4.4.40.0100.0406.88
4.4.30.0030.0276.88
4.4.20.0070.0306.88
4.4.10.0070.0306.88
4.4.00.0170.0336.88
4.3.110.0130.0236.88
4.3.100.0100.0236.88
4.3.90.0130.0236.88
4.3.80.0070.0336.88
4.3.70.0070.0206.88
4.3.60.0100.0206.88
4.3.50.0070.0236.88
4.3.40.0030.0406.88
4.3.30.0030.0236.88
4.3.20.0070.0206.88
4.3.10.0070.0206.88
4.3.00.0170.02310.29

preferences:
54.75 ms | 401 KiB | 5 Q