3v4l.org

run code in 300+ PHP versions simultaneously
<?php class blah { public function create() { return new static(); } public static function test() { echo 'test'; } } $blah = blah::create(); $blah->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.40.0040.01118.77
8.3.30.0120.00318.69
8.3.20.0040.00420.04
8.3.10.0040.00421.94
8.3.00.0030.00519.78
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00826.16
8.2.120.0100.00017.63
8.2.110.0090.00022.37
8.2.100.0040.00817.75
8.2.90.0030.00619.13
8.2.80.0040.00417.97
8.2.70.0040.00417.38
8.2.60.0000.00817.80
8.2.50.0030.00518.07
8.2.40.0040.00419.21
8.2.30.0020.00520.64
8.2.20.0070.00017.55
8.2.10.0000.00718.04
8.2.00.0070.00017.98
8.1.270.0150.00322.20
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.80
8.1.230.0120.00017.42
8.1.220.0080.00017.74
8.1.210.0060.00318.77
8.1.200.0030.00617.22
8.1.190.0000.00817.00
8.1.180.0000.00718.10
8.1.170.0030.00518.28
8.1.160.0080.00021.95
8.1.150.0040.00418.75
8.1.140.0040.00417.23
8.1.130.0030.00317.57
8.1.120.0040.00417.37
8.1.110.0000.00817.32
8.1.100.0040.00417.23
8.1.90.0040.00417.26
8.1.80.0050.00217.30
8.1.70.0040.00417.32
8.1.60.0080.00017.52
8.1.50.0000.00817.48
8.1.40.0080.00317.34
8.1.30.0040.00417.58
8.1.20.0040.00417.49
8.1.10.0000.00717.42
8.1.00.0040.00417.45
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0030.00318.39
8.0.270.0000.00717.14
8.0.260.0000.00617.20
8.0.250.0050.00316.87
8.0.240.0000.00716.84
8.0.230.0030.00316.82
8.0.220.0060.00316.80
8.0.210.0000.00716.82
8.0.200.0070.00016.84
8.0.190.0030.00516.95
8.0.180.0000.00816.90
8.0.170.0040.00416.94
8.0.160.0000.00716.82
8.0.150.0030.00316.72
8.0.140.0070.00016.83
8.0.130.0030.00313.27
8.0.120.0000.00816.89
8.0.110.0000.00716.80
8.0.100.0030.00516.90
8.0.90.0030.00516.80
8.0.80.0030.01316.89
8.0.70.0040.00416.88
8.0.60.0020.00516.76
8.0.50.0020.00516.80
8.0.30.0080.01016.91
8.0.20.0130.00717.40
8.0.10.0040.00416.98
8.0.00.0090.00816.72
7.4.330.0000.00515.09
7.4.320.0030.00316.51
7.4.300.0040.00416.59
7.4.290.0030.00316.60
7.4.280.0000.00916.50
7.4.270.0030.00316.41
7.4.260.0040.00416.51
7.4.250.0080.00016.55
7.4.240.0050.00316.58
7.4.230.0000.00716.38
7.4.220.0060.01116.62
7.4.210.0030.01016.52
7.4.200.0040.00416.62
7.4.160.0060.00916.37
7.4.150.0070.01117.40
7.4.140.0070.01317.86
7.4.130.0140.00516.49
7.4.120.0080.01016.51
7.4.110.0090.01316.61
7.4.100.0140.00316.72
7.4.90.0070.01016.61
7.4.80.0150.00619.39
7.4.70.0090.00616.59
7.4.60.0060.01016.55
7.4.50.0000.00816.44
7.4.40.0030.01316.41
7.4.30.0030.01416.72
7.4.00.0060.01015.03
7.3.330.0030.00313.09
7.3.320.0050.00013.26
7.3.310.0040.00416.20
7.3.300.0060.00016.32
7.3.290.0050.01016.30
7.3.280.0100.00916.33
7.3.270.0000.01717.40
7.3.260.0070.01016.50
7.3.250.0100.00716.42
7.3.240.0110.01116.27
7.3.230.0050.01116.39
7.3.210.0120.00416.38
7.3.200.0060.01016.32
7.3.190.0040.01216.43
7.3.180.0040.01116.34
7.3.170.0030.01616.38
7.3.160.0030.01316.54
7.3.120.0060.01014.82
7.3.110.0060.01114.85
7.3.100.0050.01014.71
7.3.90.0060.00814.64
7.3.80.0060.00614.88
7.3.70.0040.01114.81
7.3.60.0090.00514.65
7.3.50.0080.00414.73
7.3.40.0040.00814.49
7.3.30.0070.00514.71
7.3.20.0080.00816.47
7.3.10.0030.01316.45
7.3.00.0020.01116.55
7.2.330.0130.00516.60
7.2.320.0090.00916.56
7.2.310.0100.00716.71
7.2.300.0100.00616.72
7.2.290.0080.00816.27
7.2.250.0050.01314.92
7.2.240.0080.01115.01
7.2.230.0050.01114.98
7.2.220.0020.01314.86
7.2.210.0060.00914.75
7.2.200.0070.00714.85
7.2.190.0020.01414.98
7.2.180.0030.01214.80
7.2.170.0030.01214.83
7.2.60.0000.01216.82
7.2.00.0030.00719.23
7.1.330.0080.00715.68
7.1.320.0040.00915.65
7.1.310.0060.00715.54
7.1.300.0050.00915.57
7.1.290.0060.00615.55
7.1.280.0070.00615.51
7.1.270.0060.00715.49
7.1.260.0050.01015.49
7.1.200.0030.00715.55
7.1.100.0000.01417.57
7.1.70.0000.00817.00
7.1.60.0100.01019.19
7.1.50.0100.01316.93
7.1.00.0100.07022.52
7.0.200.0000.00716.64
7.0.60.0130.08019.91
7.0.50.0100.07717.85
7.0.40.0000.09020.11
7.0.30.0370.07020.13
7.0.20.0270.03320.23
7.0.10.0070.08720.25
7.0.00.0200.07320.12
5.6.280.0100.06320.78
5.6.210.0130.08020.61
5.6.200.0030.07318.14
5.6.190.0030.04720.43
5.6.180.0430.06720.33
5.6.170.0170.04020.51
5.6.160.0070.08720.61
5.6.150.0070.05318.20
5.6.140.0030.06018.19
5.6.130.0030.04318.15
5.6.120.0100.08320.91
5.6.110.0100.07721.08
5.6.100.0200.07021.14
5.6.90.0030.06321.00
5.6.80.0100.07320.37
5.5.350.0030.09320.36
5.5.340.0130.07718.05
5.5.330.0100.06720.41
5.5.320.3770.04020.34
5.5.310.0200.05320.24
5.5.300.0000.05717.99
5.5.290.0100.07718.05
5.5.280.0070.07020.73
5.5.270.0070.03720.73
5.5.260.0130.04720.88
5.5.250.0030.07720.59
5.5.240.0070.07320.16
5.4.450.0230.06719.30
5.4.440.0300.05019.38
5.4.430.0170.06719.47
5.4.420.0230.05719.68
5.4.410.0170.06319.32
5.4.400.0000.06319.10
5.4.390.0170.05319.29
5.4.380.0170.05019.31
5.4.370.0100.05318.84
5.4.360.0200.04719.14
5.4.350.0130.05019.06
5.4.340.0300.05319.01
5.4.320.0230.04719.27
5.4.310.0130.06318.98
5.4.300.0070.06019.23
5.4.290.0100.06719.26
5.4.280.0270.04319.01
5.4.270.0200.05319.28
5.4.260.0170.04719.25
5.4.250.0200.04719.29
5.4.240.0300.05318.86
5.4.230.0130.06719.24
5.4.220.0270.05018.98
5.4.210.0170.05718.86
5.4.200.0200.05719.13
5.4.190.0300.04719.25
5.4.180.0030.06019.25
5.4.170.0130.05018.82
5.4.160.0200.04719.28
5.4.150.0230.04319.24
5.4.140.0100.06316.50
5.4.130.0270.04316.40
5.4.120.0200.05016.39
5.4.110.0200.04716.58
5.4.100.0130.05016.25
5.4.90.0330.05316.62
5.4.80.0170.04716.64
5.4.70.0270.04716.44
5.4.60.0000.03316.17
5.4.50.0030.04016.53
5.4.40.0170.03716.43
5.4.30.0330.06316.16
5.4.20.0170.03716.42

preferences:
59.5 ms | 404 KiB | 6 Q