3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {private $x = 1;} // Pre PHP 7 code $getXCB = function() {return $this->x;}; $getX = $getXCB->bindTo(new A, 'A'); // intermediate closure echo $getX();

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.0100.01018.43
8.3.50.0110.00622.12
8.3.40.0040.01118.87
8.3.30.0030.01218.73
8.3.20.0120.00620.38
8.3.10.0000.00823.66
8.3.00.0050.00319.79
8.2.180.0070.01516.50
8.2.170.0100.00722.96
8.2.160.0040.01420.41
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0030.00619.34
8.2.120.0080.00026.35
8.2.110.0130.00320.39
8.2.100.0110.00018.04
8.2.90.0080.00019.05
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0030.00617.93
8.2.50.0040.00418.07
8.2.40.0040.00422.19
8.2.30.0000.00820.64
8.2.20.0000.00817.66
8.2.10.0040.00418.01
8.2.00.0000.00718.05
8.1.280.0170.00325.92
8.1.270.0080.00020.27
8.1.260.0040.00428.09
8.1.250.0030.00528.09
8.1.240.0050.00522.25
8.1.230.0060.00617.55
8.1.220.0000.00817.76
8.1.210.0090.00018.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0060.00318.59
8.1.160.0040.00420.67
8.1.150.0000.00818.95
8.1.140.0050.00319.65
8.1.130.0030.00317.42
8.1.120.0000.00717.37
8.1.110.0000.00817.49
8.1.100.0050.00217.46
8.1.90.0030.00517.33
8.1.80.0080.00017.43
8.1.70.0000.00717.37
8.1.60.0030.00517.54
8.1.50.0030.00617.50
8.1.40.0080.00017.48
8.1.30.0030.00517.64
8.1.20.0030.00517.71
8.1.10.0000.00717.63
8.1.00.0040.00417.57
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00318.43
8.0.270.0040.00417.31
8.0.260.0000.00616.80
8.0.250.0030.00316.84
8.0.240.0080.00016.84
8.0.230.0030.00516.79
8.0.220.0000.00716.80
8.0.210.0000.00716.80
8.0.200.0040.00416.88
8.0.190.0000.00816.81
8.0.180.0000.00716.91
8.0.170.0070.00016.85
8.0.160.0030.00616.77
8.0.150.0030.00616.93
8.0.140.0030.00516.80
8.0.130.0000.00513.29
8.0.120.0040.00416.90
8.0.110.0050.00316.88
8.0.100.0000.00716.77
8.0.90.0070.00016.91
8.0.80.0110.00416.86
8.0.70.0070.00016.95
8.0.60.0000.00816.97
8.0.50.0000.00716.95
8.0.30.0060.01216.96
8.0.20.0100.01017.40
8.0.10.0040.00417.07
8.0.00.0130.00716.83
7.4.330.0020.00216.79
7.4.320.0030.00316.52
7.4.300.0030.00316.50
7.4.290.0000.00616.44
7.4.280.0030.00616.59
7.4.270.0000.00716.60
7.4.260.0030.00316.50
7.4.250.0040.00416.53
7.4.240.0020.00516.46
7.4.230.0000.00816.46
7.4.220.0040.01416.46
7.4.210.0070.01016.59
7.4.200.0080.00016.34
7.4.160.0130.00316.46
7.4.150.0140.00417.40
7.4.140.0050.01517.86
7.4.130.0150.00616.55
7.4.120.0050.01316.52
7.4.110.0100.00716.50
7.4.100.0090.00916.31
7.4.90.0170.00616.33
7.4.80.0140.00719.39
7.4.70.0120.00616.45
7.4.60.0100.00716.46
7.4.50.0030.01016.71
7.4.40.0030.01316.52
7.4.30.0100.00716.47
7.4.00.0060.01114.86
7.3.330.0050.00013.09
7.3.320.0060.00013.07
7.3.310.0050.00216.01
7.3.300.0030.00316.18
7.3.290.0030.00316.24
7.3.280.0070.00916.27
7.3.270.0070.01117.40
7.3.260.0070.01016.59
7.3.250.0090.01016.21
7.3.240.0080.00816.15
7.3.230.0030.01216.50
7.3.210.0060.01216.32
7.3.200.0170.00316.39
7.3.190.0030.01316.23
7.3.180.0030.01516.13
7.3.170.0060.01516.61
7.3.160.0000.02116.41
7.3.120.0030.01214.78
7.3.110.0030.01614.96
7.3.100.0170.00014.95
7.3.90.0070.01014.96
7.3.80.0090.00614.58
7.3.70.0000.01214.68
7.3.60.0030.01014.77
7.3.50.0060.00614.76
7.3.40.0030.01314.75
7.3.30.0030.00614.82
7.3.20.0060.00916.64
7.3.10.0050.00816.54
7.3.00.0070.00616.54
7.2.330.0100.00916.60
7.2.320.0230.00016.71
7.2.310.0070.01016.80
7.2.300.0000.01616.60
7.2.290.0100.00816.59
7.2.250.0070.01014.90
7.2.240.0030.01715.34
7.2.230.0030.01015.02
7.2.220.0040.01115.11
7.2.210.0030.00614.76
7.2.200.0060.01314.83
7.2.190.0060.00814.99
7.2.180.0110.00415.07
7.2.170.0000.01415.22
7.2.130.0070.00716.73
7.2.120.0070.01116.33
7.2.110.0110.00616.60
7.2.100.0070.00316.71
7.2.90.0030.00716.92
7.2.80.0080.00816.86
7.2.70.0100.00316.57
7.2.60.0000.01116.64
7.2.50.0090.00316.89
7.2.40.0060.00916.94
7.2.30.0120.00316.86
7.2.20.0130.00317.12
7.2.10.0050.00516.73
7.2.00.0060.00818.09
7.1.330.0100.00715.66
7.1.320.0040.01115.65
7.1.310.0100.00315.76
7.1.300.0120.00315.34
7.1.290.0040.00715.57
7.1.280.0030.00815.58
7.1.270.0070.00715.42
7.1.260.0090.00915.50
7.1.250.0100.00715.38
7.1.100.0040.01117.86
7.1.70.0070.00316.79
7.1.60.0070.01719.52
7.1.50.0060.01516.68
7.1.00.0070.07322.36
7.0.200.0060.00316.63
7.0.60.0130.07319.97
7.0.50.0030.04017.80
7.0.40.0070.05720.25
7.0.30.0270.07720.26
7.0.20.0330.07320.10
7.0.10.0130.07320.34
7.0.00.0000.04720.27
5.6.280.0070.03020.89
5.6.210.0000.07020.46
5.6.200.0070.08718.27
5.6.190.0170.07320.48
5.6.180.0330.07020.52
5.6.170.0200.05720.44
5.6.160.0130.06320.57
5.6.150.0030.08718.27
5.6.140.0070.08018.11
5.6.130.0030.04018.28
5.6.120.0070.04020.99
5.6.110.0100.08021.01
5.6.100.0100.08021.14
5.6.90.0030.06320.99
5.6.80.0130.03020.54
5.5.350.0230.03720.39
5.5.340.0030.04018.08
5.5.330.0070.05320.37
5.5.320.0200.08320.36
5.5.310.0230.06320.36
5.5.300.0030.05317.95
5.5.290.0000.04717.98
5.5.280.0070.03720.94
5.5.270.0130.04320.80
5.5.260.0100.08020.79
5.5.250.0030.07020.69
5.5.240.0400.04720.27

preferences:
60.38 ms | 401 KiB | 5 Q