3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test{ public $delta = ['0']; public function test(){ $t = function( $id = 1) { print_r($id); }; return $t; } } $Test = new Test; var_dump($Test->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.60.0030.01718.43
8.3.50.0300.00521.93
8.3.40.0140.00318.50
8.3.30.0040.01118.92
8.3.20.0040.00420.38
8.3.10.0080.00023.46
8.3.00.0080.00019.38
8.2.180.0120.00616.36
8.2.170.0100.00722.96
8.2.160.0070.00720.47
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.21
8.2.110.0180.00322.05
8.2.100.0060.00617.63
8.2.90.0000.00819.26
8.2.80.0080.00017.97
8.2.70.0000.00917.59
8.2.60.0050.00318.04
8.2.50.0080.00018.07
8.2.40.0040.00418.34
8.2.30.0040.00418.12
8.2.20.0080.00017.68
8.2.10.0080.00018.06
8.2.00.0000.00817.66
8.1.280.0070.00725.92
8.1.270.0090.00022.23
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0190.00323.97
8.1.230.0070.00319.15
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0040.00817.36
8.1.190.0000.00817.22
8.1.180.0080.00018.10
8.1.170.0030.00718.65
8.1.160.0030.00322.05
8.1.150.0030.00318.82
8.1.140.0000.00917.42
8.1.130.0030.00317.83
8.1.120.0030.00317.35
8.1.110.0040.00417.46
8.1.100.0000.00817.36
8.1.90.0070.00017.46
8.1.80.0040.00417.39
8.1.70.0030.00317.42
8.1.60.0040.00417.59
8.1.50.0080.00017.46
8.1.40.0040.00417.51
8.1.30.0050.00317.54
8.1.20.0040.00417.66
8.1.10.0050.00217.52
8.1.00.0060.00317.33
8.0.300.0020.00518.77
8.0.290.0000.00816.58
8.0.280.0000.00718.44
8.0.270.0000.00716.75
8.0.260.0030.00318.32
8.0.250.0030.00316.88
8.0.240.0000.00816.94
8.0.230.0070.00016.84
8.0.220.0000.00716.83
8.0.210.0050.00316.68
8.0.200.0000.00616.82
8.0.190.0050.00316.96
8.0.180.0080.00016.84
8.0.170.0060.00316.79
8.0.160.0000.00716.94
8.0.150.0030.00316.86
8.0.140.0000.00716.85
8.0.130.0060.00013.29
8.0.120.0040.00416.89
8.0.110.0050.00216.80
8.0.100.0050.00316.76
8.0.90.0000.00716.82
8.0.80.0110.00716.82
8.0.70.0000.00716.91
8.0.60.0000.00816.78
8.0.50.0050.00316.76
8.0.30.0100.01217.13
8.0.20.0190.00717.40
8.0.10.0070.00016.99
8.0.00.0030.01416.89
7.4.330.0050.00015.02
7.4.320.0000.00616.59
7.4.300.0000.00616.55
7.4.290.0070.00016.47
7.4.280.0000.00816.59
7.4.270.0030.00316.54
7.4.260.0070.00416.46
7.4.250.0030.00516.39
7.4.240.0000.00716.50
7.4.230.0030.00316.41
7.4.220.0000.02116.59
7.4.210.0120.00816.46
7.4.200.0030.00516.71
7.4.160.0040.01316.55
7.4.150.0060.01317.40
7.4.140.0110.00817.86
7.4.130.0100.01116.46
7.4.120.0140.00616.54
7.4.110.0130.00716.40
7.4.100.0090.00916.60
7.4.90.0090.01516.44
7.4.80.0090.00919.39
7.4.70.0080.01416.35
7.4.60.0090.00616.59
7.4.50.0070.00316.70
7.4.40.0090.00916.57
7.4.30.0150.00916.57
7.4.00.0070.00714.91
7.3.330.0000.00613.35
7.3.320.0050.00013.36
7.3.310.0030.00316.34
7.3.300.0000.00616.28
7.3.290.0100.00416.37
7.3.280.0080.00816.40
7.3.270.0070.01117.40
7.3.260.0060.01216.53
7.3.250.0120.00716.26
7.3.240.0060.01516.45
7.3.230.0180.00316.57
7.3.210.0030.01416.50
7.3.200.0090.00919.39
7.3.190.0050.01116.58
7.3.180.0100.00716.59
7.3.170.0100.00616.41
7.3.160.0110.00516.39
7.2.330.0160.01616.70
7.2.320.0060.01216.68
7.2.310.0000.01616.60
7.2.300.0070.01016.76
7.2.290.0070.01416.53
7.2.60.0060.00616.84
7.2.00.0030.01019.27
7.1.200.0040.00815.80
7.1.100.0070.00717.64
7.1.70.0060.00916.95
7.1.60.0070.01619.32
7.1.50.0100.01016.89
7.1.00.0070.07322.43
7.0.200.0080.00016.73
7.0.140.0030.07321.99
7.0.60.0130.03019.90
7.0.50.0000.04317.84
7.0.40.0000.05320.11
7.0.30.0570.07320.34
7.0.20.0430.06320.15
7.0.10.0330.06320.26
7.0.00.0030.04320.05
5.6.280.0030.07320.84
5.6.210.0030.04020.61
5.6.200.0130.07718.12
5.6.190.0170.07720.46
5.6.180.0100.04720.61
5.6.170.0270.07720.51
5.6.160.0000.07020.39
5.6.150.0130.06018.29
5.6.140.0130.06018.17
5.6.130.0070.05718.28
5.6.120.0070.08321.02
5.6.110.0100.07721.15
5.6.100.0030.05021.09
5.6.90.0070.03721.11
5.6.80.0070.05320.38
5.6.70.0430.05720.36
5.5.350.0170.07320.36
5.5.340.0030.04017.93
5.5.330.0030.04320.35
5.5.320.0030.08320.38
5.5.310.0230.05320.36
5.5.300.0200.06717.95
5.5.290.0070.08317.95
5.5.280.0100.06020.69
5.5.270.0100.08020.65
5.5.260.0100.03720.80
5.5.250.0170.06720.70
5.5.240.0100.08020.15
5.4.450.2970.04719.40
5.4.440.2570.04019.49
5.4.430.3200.04019.52
5.4.420.2270.04719.48
5.4.410.2500.04019.51
5.4.400.3070.04019.24
5.4.390.2830.04719.08
5.4.380.2970.04019.23
5.4.370.3070.03319.05
5.4.360.2770.03318.84
5.4.350.3200.03719.15
5.4.340.3100.04719.23
5.4.320.2900.03319.20
5.4.310.3000.03718.95
5.4.300.3200.03719.25
5.4.290.3830.03719.30
5.4.280.3000.03319.23
5.4.270.3230.03719.05
5.4.260.3000.03719.23
5.4.250.2970.03719.08
5.4.240.2470.04018.95
5.4.230.3130.04318.86
5.4.220.2570.03718.86
5.4.210.2700.03319.04
5.4.200.3170.04019.07
5.4.190.2900.03718.99
5.4.180.2770.03718.97
5.4.170.3000.03319.18
5.4.160.0030.08019.18
5.4.150.0030.07319.18
5.4.140.0030.03716.57
5.4.130.1170.06016.46
5.4.120.2930.03716.55
5.4.110.2470.03316.50
5.4.100.2430.03716.30
5.4.90.3200.03316.32
5.4.80.3030.03316.43
5.4.70.3100.03716.28
5.4.60.3270.04316.40
5.4.50.2630.04316.33
5.4.40.2630.03716.27
5.4.30.2700.04016.32
5.4.20.2900.03716.49
5.4.10.3230.04016.51
5.4.00.2730.03315.79
5.3.290.2700.04014.68
5.3.280.3170.04014.74
5.3.270.3170.04314.71
5.3.260.2630.03714.61
5.3.250.3170.03714.61
5.3.240.2870.04014.59
5.3.230.2900.03714.56
5.3.220.2970.03314.62
5.3.210.2700.04014.64
5.3.200.2670.03314.79
5.3.190.2770.04014.57
5.3.180.2930.04014.54
5.3.170.2900.03314.64
5.3.160.2070.04014.46
5.3.150.0630.04314.68
5.3.140.0070.07314.55
5.3.130.0100.07014.62
5.3.120.0630.07014.63
5.3.110.3170.04714.66
5.3.100.3100.04014.04
5.3.90.3170.03713.88
5.3.80.3000.03314.02
5.3.70.2930.03314.09
5.3.60.3070.04013.91
5.3.50.3070.03713.85
5.3.40.3200.03713.86
5.3.30.2970.03313.82
5.3.20.3370.03713.76
5.3.10.3100.03313.77
5.3.00.3230.03313.86
5.2.170.2770.02712.23
5.2.160.2630.02712.23
5.2.150.2270.03312.23
5.2.140.2700.03312.23
5.2.130.2700.02712.23
5.2.120.2400.03012.23
5.2.110.2300.03312.23
5.2.100.2570.03012.23
5.2.90.2770.02712.23
5.2.80.2670.03312.23
5.2.70.2470.02712.23
5.2.60.2800.03312.23
5.2.50.2730.02012.23
5.2.40.2000.02712.23
5.2.30.2170.03012.23
5.2.20.2070.03012.23
5.2.10.2070.02712.23
5.2.00.2230.02712.23
5.1.60.1870.03012.23
5.1.50.2370.03312.23
5.1.40.2430.02312.23
5.1.30.2130.02312.23
5.1.20.2200.02712.23
5.1.10.2200.03012.23
5.1.00.2130.03712.23
5.0.50.1230.02012.23
5.0.40.1130.02312.23
5.0.30.0830.02712.23
5.0.20.0970.02012.23
5.0.10.1200.01712.23
5.0.00.0770.03012.23
4.4.90.1030.01312.23
4.4.80.1070.01712.23
4.4.70.0970.01712.23
4.4.60.1000.01312.23
4.4.50.0870.01712.23
4.4.40.0770.02312.23
4.4.30.1030.01712.23
4.4.20.1030.01712.23
4.4.10.0730.01712.23
4.4.00.1030.02012.23
4.3.110.1000.01312.23
4.3.100.0970.01712.23
4.3.90.0970.01712.23
4.3.80.1070.02312.23
4.3.70.1000.01312.23
4.3.60.1000.01312.23
4.3.50.0970.01712.23
4.3.40.0730.02312.23
4.3.30.0500.01712.23
4.3.20.0500.01312.23
4.3.10.0230.01712.23
4.3.00.0570.01712.23

preferences:
51.7 ms | 401 KiB | 5 Q