3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { var $x = 'y'; function __construct() { bar(); } private function bar() { return $this->x; } } echo new foo();

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.60.0140.00416.75
8.3.50.0150.00721.03
8.3.40.0070.00718.97
8.3.30.0110.00318.59
8.3.20.0020.00520.02
8.3.10.0000.00821.82
8.3.00.0070.00023.53
8.2.180.0130.00618.50
8.2.170.0120.00318.79
8.2.160.0130.00022.96
8.2.150.0030.00625.66
8.2.140.0070.00024.66
8.2.130.0040.00419.64
8.2.120.0080.00026.35
8.2.110.0040.00419.26
8.2.100.0040.00717.72
8.2.90.0040.00419.09
8.2.80.0080.00018.04
8.2.70.0040.00417.50
8.2.60.0040.00417.93
8.2.50.0040.00418.07
8.2.40.0060.00322.15
8.2.30.0030.00619.29
8.2.20.0070.00017.56
8.2.10.0040.00417.86
8.2.00.0000.00717.92
8.1.280.0070.00725.92
8.1.270.0030.00623.96
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0000.01021.97
8.1.230.0060.00620.95
8.1.220.0030.00517.74
8.1.210.0030.00618.77
8.1.200.0060.00317.23
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0040.00418.53
8.1.160.0040.00420.63
8.1.150.0040.00418.66
8.1.140.0030.00619.53
8.1.130.0030.00317.47
8.1.120.0040.00417.30
8.1.110.0070.00317.29
8.1.100.0000.00717.23
8.1.90.0000.00817.29
8.1.80.0040.00417.36
8.1.70.0030.00317.32
8.1.60.0000.00817.52
8.1.50.0020.00517.46
8.1.40.0030.00617.43
8.1.30.0030.00517.46
8.1.20.0050.00317.59
8.1.10.0030.00517.45
8.1.00.0030.00617.46
8.0.300.0000.00918.77
8.0.290.0040.00416.75
8.0.280.0070.00018.39
8.0.270.0000.00717.19
8.0.260.0000.00617.22
8.0.250.0070.00016.93
8.0.240.0000.00716.89
8.0.230.0030.00316.83
8.0.220.0000.00716.93
8.0.210.0030.00316.84
8.0.200.0030.00316.92
8.0.190.0050.00316.83
8.0.180.0080.00016.86
8.0.170.0080.00016.95
8.0.160.0030.00516.86
8.0.150.0000.00716.90
8.0.140.0050.00316.68
8.0.130.0060.00013.25
8.0.120.0040.00416.84
8.0.110.0030.00516.78
8.0.100.0040.00416.89
8.0.90.0000.00816.76
8.0.80.0150.00616.88
8.0.70.0080.00016.95
8.0.60.0040.00416.89
8.0.50.0020.00516.89
8.0.30.0110.00617.01
8.0.20.0120.00917.40
8.0.10.0070.00016.81
8.0.00.0130.00816.72
7.4.330.0000.00616.78
7.4.320.0000.00616.45
7.4.300.0040.00416.42
7.4.290.0000.00716.48
7.4.280.0030.00616.45
7.4.270.0050.00316.57
7.4.260.0030.00316.34
7.4.250.0000.00716.50
7.4.240.0040.00316.42
7.4.230.0070.00016.33
7.4.220.0090.00916.53
7.4.210.0060.01216.48
7.4.200.0030.00316.46
7.4.160.0120.00316.28
7.4.150.0090.00917.40
7.4.140.0040.01417.86
7.4.130.0050.01316.53
7.4.120.0100.00716.51
7.4.110.0060.00916.38
7.4.100.0120.01216.79
7.4.90.0060.01216.46
7.4.80.0090.00919.39
7.4.70.0100.00616.57
7.4.60.0130.00316.44
7.4.50.0070.01016.46
7.4.40.0030.01616.43
7.4.30.0030.01416.63
7.4.00.0090.00915.04
7.3.330.0060.00013.34
7.3.320.0030.00313.14
7.3.310.0030.00316.31
7.3.300.0000.00716.33
7.3.290.0040.00416.27
7.3.280.0040.01416.35
7.3.270.0130.00417.40
7.3.260.0130.00316.50
7.3.250.0100.00916.42
7.3.240.0100.00816.56
7.3.230.0120.01216.39
7.3.210.0030.01616.45
7.3.200.0110.00719.39
7.3.190.0140.00416.43
7.3.180.0120.00616.28
7.3.170.0160.00616.47
7.3.160.0100.00716.33
7.3.120.0100.01014.60
7.3.110.0070.01014.81
7.3.100.0060.00614.52
7.3.90.0140.00014.79
7.3.80.0060.00915.15
7.3.70.0090.00314.96
7.3.60.0030.01314.73
7.3.50.0000.01414.83
7.3.40.0090.00614.86
7.3.30.0140.00014.51
7.3.20.0150.00316.52
7.3.10.0040.00716.77
7.3.00.0100.00416.60
7.2.330.0100.01516.57
7.2.320.0150.00316.34
7.2.310.0110.00716.41
7.2.300.0070.01016.52
7.2.290.0060.01516.46
7.2.250.0070.01014.72
7.2.240.0040.01514.79
7.2.230.0000.00914.93
7.2.220.0070.00314.89
7.2.210.0060.00615.07
7.2.200.0030.01114.74
7.2.190.0040.01114.82
7.2.180.0100.00314.84
7.2.170.0070.00714.90
7.2.60.0030.01216.89
7.2.00.0140.00319.00
7.1.330.0030.01015.53
7.1.320.0120.00315.75
7.1.310.0090.00615.59
7.1.300.0080.00615.54
7.1.290.0000.01015.41
7.1.280.0040.01115.63
7.1.270.0000.00915.65
7.1.260.0000.01315.63
7.1.200.0040.01115.69
7.1.100.0190.00617.99
7.1.70.0000.00817.07
7.1.60.0140.01119.27
7.1.50.0100.01316.99
7.1.00.0130.06722.45
7.0.200.0030.00616.32
7.0.60.0130.03021.61
7.0.50.0070.08017.85
7.0.40.0170.08019.96
7.0.30.0200.05720.15
7.0.20.0300.03320.06
7.0.10.0030.06720.23
7.0.00.0030.08320.10
5.6.280.0000.07320.89
5.6.210.0130.05020.70
5.6.200.0030.04018.16
5.6.190.0070.04020.60
5.6.180.0170.05320.39
5.6.170.0230.05320.55
5.6.160.0170.06720.55
5.6.150.0100.07718.17
5.6.140.0070.05018.18
5.6.130.0070.05718.24
5.6.120.0070.04021.11
5.6.110.0070.08721.15
5.6.100.0030.04721.13
5.6.90.0130.07720.98
5.6.80.0170.07020.39
5.5.350.0100.08320.43
5.5.340.0030.04017.95
5.5.330.0070.08320.32
5.5.320.0170.04720.33
5.5.310.0200.03720.34
5.5.300.0030.04017.92
5.5.290.0070.08317.98
5.5.280.0100.05020.88
5.5.270.0070.04020.77
5.5.260.0000.05320.84
5.5.250.0030.06320.70
5.5.240.0070.08320.16

preferences:
31.31 ms | 401 KiB | 5 Q