3v4l.org

run code in 300+ PHP versions simultaneously
<?php class toto{public function foo() {} public $foo=3;} define('toto', 3); echo toto;

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.40.0110.00718.67
8.3.30.0110.00318.93
8.3.20.0040.00420.25
8.3.10.0000.00721.60
8.3.00.0070.00018.97
8.2.170.0100.00722.96
8.2.160.0110.00320.21
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0060.00319.65
8.2.110.0030.00619.34
8.2.100.0090.00317.59
8.2.90.0000.00817.63
8.2.80.0030.00617.97
8.2.70.0060.00317.91
8.2.60.0070.00318.11
8.2.50.0040.00418.10
8.2.40.0030.00621.13
8.2.30.0000.00819.17
8.2.20.0040.00417.60
8.2.10.0000.00817.97
8.2.00.0040.00417.60
8.1.270.0040.00418.79
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00619.07
8.1.230.0040.00718.98
8.1.220.0000.01117.74
8.1.210.0000.00918.77
8.1.200.0040.00417.10
8.1.190.0080.00017.10
8.1.180.0000.00918.10
8.1.170.0000.00818.56
8.1.160.0000.00718.78
8.1.150.0050.00218.82
8.1.140.0030.00617.25
8.1.130.0000.00717.79
8.1.120.0040.00417.42
8.1.110.0040.00317.36
8.1.100.0040.00417.27
8.1.90.0070.00017.30
8.1.80.0000.00717.36
8.1.70.0000.00717.39
8.1.60.0000.00817.43
8.1.50.0000.00817.46
8.1.40.0000.00717.46
8.1.30.0030.00517.51
8.1.20.0080.00017.40
8.1.10.0040.00417.39
8.1.00.0000.00717.25
8.0.300.0000.00719.66
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0070.00017.18
8.0.260.0060.00017.24
8.0.250.0000.00716.85
8.0.240.0000.00716.87
8.0.230.0030.00316.90
8.0.220.0030.00316.75
8.0.210.0000.00716.78
8.0.200.0000.00716.86
8.0.190.0000.00716.78
8.0.180.0050.00316.73
8.0.170.0070.00016.89
8.0.160.0030.00516.81
8.0.150.0000.00716.80
8.0.140.0040.00416.75
8.0.130.0000.00713.25
8.0.120.0040.00416.79
8.0.110.0000.00716.77
8.0.100.0050.00216.93
8.0.90.0000.00816.65
8.0.80.0030.01316.74
8.0.70.0000.00816.83
8.0.60.0050.00316.82
8.0.50.0050.00316.68
8.0.30.0080.01316.95
8.0.20.0100.00917.40
8.0.10.0000.00716.89
8.0.00.0120.00916.61
7.4.330.0030.00315.03
7.4.320.0030.00316.46
7.4.300.0000.00716.34
7.4.290.0000.00716.52
7.4.280.0070.00016.43
7.4.270.0030.00316.46
7.4.260.0060.00316.49
7.4.250.0000.00716.49
7.4.240.0000.00716.57
7.4.230.0030.00316.26
7.4.220.0160.00316.50
7.4.210.0090.01216.46
7.4.200.0000.00716.35
7.4.160.0130.00316.32
7.4.150.0100.01017.40
7.4.140.0080.00817.86
7.4.130.0090.00816.35
7.4.120.0070.01016.61
7.4.110.0110.00716.44
7.4.100.0130.00716.47
7.4.90.0070.01016.41
7.4.80.0080.01319.39
7.4.70.0030.01316.30
7.4.60.0100.00716.41
7.4.50.0030.00316.32
7.4.40.0120.00316.33
7.4.30.0100.01316.61
7.4.00.0050.01214.92
7.3.330.0050.00012.99
7.3.320.0000.00513.23
7.3.310.0000.00816.02
7.3.300.0030.00316.09
7.3.290.0080.00516.18
7.3.280.0090.01016.13
7.3.270.0110.00717.40
7.3.260.0100.00716.59
7.3.250.0100.00716.25
7.3.240.0100.01016.11
7.3.230.0030.01316.39
7.3.210.0060.01016.12
7.3.200.0080.00819.39
7.3.190.0070.01016.33
7.3.180.0090.00616.53
7.3.170.0140.00616.37
7.3.160.0100.00616.25
7.3.120.0070.01014.72
7.3.110.0070.01014.67
7.3.100.0060.00814.50
7.3.90.0040.01114.64
7.3.80.0070.00714.49
7.3.70.0090.00314.40
7.3.60.0060.01214.80
7.3.50.0030.01214.56
7.3.40.0070.00714.74
7.3.30.0040.01114.78
7.3.20.0120.00316.58
7.3.10.0030.00616.63
7.3.00.0060.00316.60
7.2.330.0090.00916.41
7.2.320.0100.00616.26
7.2.310.0100.01316.30
7.2.300.0060.01116.58
7.2.290.0070.01616.54
7.2.250.0060.01014.87
7.2.240.0070.01114.73
7.2.230.0030.01015.12
7.2.220.0080.00414.83
7.2.210.0040.01114.63
7.2.200.0130.00314.83
7.2.190.0090.00614.74
7.2.180.0060.00314.84
7.2.170.0000.01714.95
7.2.60.0000.01616.81
7.2.00.0000.01319.41
7.1.330.0080.00815.57
7.1.320.0000.00915.77
7.1.310.0070.00715.92
7.1.300.0070.01015.89
7.1.290.0070.00715.52
7.1.280.0000.00815.63
7.1.270.0040.01115.70
7.1.260.0110.00415.85
7.1.200.0040.00815.54
7.1.100.0030.00817.54
7.1.70.0030.00716.90
7.1.60.0000.02019.22
7.1.50.0000.01016.67
7.1.00.0000.08022.46
7.0.200.0000.00716.72
7.0.140.0070.04322.18
7.0.60.0070.04020.03
7.0.50.0000.09017.77
7.0.40.0030.09020.20
7.0.30.0400.04020.18
7.0.20.0170.05020.25
7.0.10.0000.04720.09
7.0.00.0030.04020.05
5.6.280.0100.06721.07
5.6.210.0070.07720.61
5.6.200.0030.08018.14
5.6.190.0130.08020.66
5.6.180.0300.04020.46
5.6.170.0270.05020.51
5.6.160.0100.08020.54
5.6.150.0030.05018.30
5.6.140.0070.06318.15
5.6.130.0070.07318.15
5.6.120.0070.08320.98
5.6.110.0130.07320.96
5.6.100.0070.08721.00
5.6.90.0070.08021.02
5.6.80.0030.04020.50
5.5.350.0200.07720.42
5.5.340.0030.04018.07
5.5.330.0030.04020.27
5.5.320.0270.06320.35
5.5.310.0230.07720.34
5.5.300.0200.07017.95
5.5.290.0070.08018.07
5.5.280.0000.04720.77
5.5.270.0100.03720.66
5.5.260.0070.08320.95
5.5.250.0100.07320.70
5.5.240.0030.04020.24
5.4.450.0600.07319.47
5.4.440.0770.05319.54
5.4.430.0670.05719.16
5.4.420.0270.04019.56
5.4.410.0670.05319.26
5.4.400.0670.05319.27
5.4.390.0770.04719.30
5.4.380.0230.05018.76
5.4.370.0270.04318.60
5.4.360.0300.05018.75
5.4.350.0270.04718.61
5.4.340.0170.05718.69
5.4.320.0300.04018.71
5.4.310.0170.05718.75
5.4.300.0300.04318.52
5.4.290.0200.04718.53
5.4.280.0270.04318.66
5.4.270.0200.04718.71
5.4.260.0200.05018.60
5.4.250.0200.05318.71
5.4.240.0170.06018.59
5.4.230.0230.05018.67
5.4.220.0200.05718.45
5.4.210.0130.06018.58
5.4.200.0330.04716.63
5.4.190.0230.04718.56
5.4.180.0270.04718.67
5.4.170.0200.05018.76
5.4.160.0230.04318.55
5.4.150.0170.05318.73
5.4.140.0100.06316.30
5.4.130.0170.05016.30
5.4.120.0300.06016.26
5.4.110.0130.05316.17
5.4.100.0370.03716.33
5.4.90.0200.05716.26
5.4.80.0170.05016.33
5.4.70.0200.05316.25
5.4.60.0200.05316.29
5.4.50.0170.05016.39
5.4.40.0130.05716.38
5.4.30.0200.04716.27
5.4.20.0200.04716.24
5.4.10.0200.04716.15
5.4.00.0300.03715.77
5.3.290.0200.05314.71
5.3.280.0200.05314.71
5.3.270.0230.05314.66
5.3.260.0230.05014.62
5.3.250.0200.05014.82
5.3.240.0130.06014.64
5.3.230.0230.05714.57
5.3.220.0200.04714.76
5.3.210.0200.05014.63
5.3.200.0230.04714.61
5.3.190.0230.07314.72
5.3.180.0130.07014.68
5.3.170.0030.06314.61
5.3.160.0230.05314.68
5.3.150.0130.05714.68
5.3.140.0370.03314.69
5.3.130.0230.04714.57
5.3.120.0230.05314.57
5.3.110.0300.04314.71
5.3.100.0200.06014.14
5.3.90.0130.05314.04
5.3.80.0230.04714.12
5.3.70.0200.04714.02
5.3.60.0230.05314.02
5.3.50.0270.06314.11
5.3.40.0200.05714.01
5.3.30.0170.05314.05
5.3.20.0230.04313.75
5.3.10.0130.05313.70
5.3.00.0130.05713.75
5.2.170.0170.04011.23
5.2.160.0230.03711.26
5.2.150.0200.03711.26
5.2.140.0170.04011.16
5.2.130.0170.04011.20
5.2.120.0170.03711.20
5.2.110.0300.02711.17
5.2.100.0130.04011.31
5.2.90.0170.05011.21
5.2.80.0170.04011.14
5.2.70.0130.04711.21
5.2.60.0070.04711.12
5.2.50.0130.04011.23
5.2.40.0030.04711.04
5.2.30.0130.04011.02
5.2.20.0030.04711.00
5.2.10.0170.03310.88
5.2.00.0130.03710.78
5.1.60.0100.0409.97
5.1.50.0130.03010.01
5.1.40.0130.0479.97
5.1.30.0170.04710.43
5.1.20.0130.05310.47
5.1.10.0130.03710.09
5.1.00.0170.03710.10
5.0.50.0100.0278.58
5.0.40.0130.0378.54
5.0.30.0100.0508.21
5.0.20.0230.0208.31
5.0.10.0070.0338.30
5.0.00.0100.0438.18
4.4.90.0030.0276.99
4.4.80.0130.0176.99
4.4.70.0100.0206.99
4.4.60.0070.0306.99
4.4.50.0130.0176.99
4.4.40.0100.0376.99
4.4.30.0100.0206.99
4.4.20.0100.0236.99
4.4.10.0100.0206.99
4.4.00.0070.0336.99
4.3.110.0070.0236.99
4.3.100.0070.0236.99
4.3.90.0070.0206.99
4.3.80.0030.0376.99
4.3.70.0030.0236.99
4.3.60.0070.0206.99
4.3.50.0070.0206.99
4.3.40.0070.0336.99
4.3.30.0070.0206.99
4.3.20.0030.0236.99
4.3.10.0070.0236.99
4.3.00.0100.0207.63

preferences:
57.36 ms | 400 KiB | 5 Q