3v4l.org

run code in 300+ PHP versions simultaneously
<?php $callable = function(&$foo) { $foo = 42; }; $bar = 23; $callable(23); var_dump($bar);

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.0070.00716.48
8.3.50.0080.00921.28
8.3.40.0120.00318.88
8.3.30.0000.01418.76
8.3.20.0080.00020.29
8.3.10.0070.00023.55
8.3.00.0060.00323.37
8.2.180.0090.00618.29
8.2.170.0100.00322.96
8.2.160.0030.01020.57
8.2.150.0070.00025.66
8.2.140.0070.00724.66
8.2.130.0000.00819.70
8.2.120.0040.00426.35
8.2.110.0030.00622.19
8.2.100.0070.00417.80
8.2.90.0000.00919.23
8.2.80.0050.00318.05
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0060.00322.15
8.2.30.0030.00320.53
8.2.20.0000.00717.73
8.2.10.0020.00518.10
8.2.00.0040.00418.04
8.1.280.0110.00425.92
8.1.270.0130.00322.18
8.1.260.0040.00428.09
8.1.250.0050.00228.09
8.1.240.0090.00023.91
8.1.230.0080.00319.04
8.1.220.0020.00517.78
8.1.210.0060.00318.77
8.1.200.0060.00317.35
8.1.190.0040.00417.00
8.1.180.0000.00818.10
8.1.170.0080.00018.59
8.1.160.0000.00720.83
8.1.150.0000.00718.95
8.1.140.0000.00819.52
8.1.130.0000.00817.58
8.1.120.0050.00217.43
8.1.110.0030.00617.48
8.1.100.0030.00317.47
8.1.90.0030.00517.36
8.1.80.0030.00517.29
8.1.70.0040.00417.49
8.1.60.0080.00017.63
8.1.50.0000.00817.51
8.1.40.0030.00617.54
8.1.30.0000.00917.48
8.1.20.0040.00417.64
8.1.10.0040.00417.58
8.1.00.0070.00017.40
8.0.300.0040.00418.77
8.0.290.0000.00816.75
8.0.280.0030.00318.42
8.0.270.0000.00717.15
8.0.260.0020.00517.18
8.0.250.0030.00316.93
8.0.240.0000.00816.91
8.0.230.0070.00016.97
8.0.220.0000.00816.86
8.0.210.0070.00016.90
8.0.200.0030.00316.99
8.0.190.0090.00017.03
8.0.180.0040.00416.97
8.0.170.0000.00816.88
8.0.160.0070.00016.84
8.0.150.0080.00016.79
8.0.140.0000.00716.83
8.0.130.0030.00313.32
8.0.120.0050.00316.86
8.0.110.0000.00717.01
8.0.100.0040.00417.06
8.0.90.0050.00316.91
8.0.80.0090.00916.87
8.0.70.0040.00416.91
8.0.60.0070.00016.98
8.0.50.0040.00417.02
8.0.30.0070.01216.97
8.0.20.0070.01217.40
8.0.10.0040.00417.08
8.0.00.0070.01216.72
7.4.330.0020.00216.85
7.4.320.0060.00016.59
7.4.300.0000.00616.60
7.4.290.0030.00316.64
7.4.280.0030.00716.50
7.4.270.0050.00316.61
7.4.260.0030.00316.34
7.4.250.0040.00416.40
7.4.240.0020.00616.44
7.4.230.0070.00016.41
7.4.220.0090.01116.52
7.4.210.0100.00816.54
7.4.200.0000.00716.36
7.4.160.0080.00816.67
7.4.150.0040.01317.40
7.4.140.0140.00717.86
7.4.130.0160.00916.62
7.4.120.0100.01116.54
7.4.110.0070.01016.39
7.4.100.0130.00316.71
7.4.90.0070.01116.52
7.4.80.0110.00719.39
7.4.70.0090.00716.63
7.4.60.0180.00316.43
7.4.50.0120.00316.16
7.4.40.0130.00616.61
7.4.30.0030.01216.47
7.4.00.0060.00915.08
7.3.330.0050.00013.37
7.3.320.0030.00313.12
7.3.310.0030.00316.46
7.3.300.0000.00616.18
7.3.290.0030.00316.34
7.3.280.0100.00616.31
7.3.270.0070.01017.40
7.3.260.0030.01416.47
7.3.250.0070.00916.40
7.3.240.0090.01116.31
7.3.230.0040.01216.39
7.3.210.0130.00316.30
7.3.200.0130.00719.39
7.3.190.0120.00616.50
7.3.180.0120.00416.35
7.3.170.0120.00416.34
7.3.160.0130.00316.39
7.3.10.0060.00616.61
7.3.00.0030.01016.52
7.2.330.0070.01116.35
7.2.320.0060.01216.61
7.2.310.0130.00316.38
7.2.300.0090.00916.66
7.2.290.0120.00916.64
7.2.130.0170.00316.83
7.2.120.0030.01316.73
7.2.110.0070.00316.60
7.2.100.0030.01216.77
7.2.90.0040.01216.80
7.2.80.0080.00416.93
7.2.70.0030.01216.87
7.2.60.0120.00716.70
7.2.50.0070.00716.84
7.2.40.0060.00816.58
7.2.30.0070.01016.75
7.2.20.0090.00016.59
7.2.10.0110.00416.93
7.2.00.0070.00717.94
7.1.250.0070.00715.50
7.1.200.0030.00615.54
7.1.100.0030.00918.34
7.1.70.0000.00716.93
7.1.60.0070.01719.20
7.1.50.0070.01416.45
7.1.00.0100.07022.51
7.0.200.0070.00316.61
7.0.60.0070.07021.75
7.0.50.0000.04717.77
7.0.40.0100.04020.18
7.0.30.0500.04720.07
7.0.20.0200.05720.07
7.0.10.0030.04320.21
7.0.00.0070.05020.09
5.6.280.0000.03721.04
5.6.210.0030.06320.48
5.6.200.0070.08318.25
5.6.190.0030.04720.61
5.6.180.0530.06320.55
5.6.170.0200.03720.62
5.6.160.0030.04320.50
5.6.150.0100.03318.16
5.6.140.0030.07718.18
5.6.130.0030.05718.28
5.6.120.0030.07321.04
5.6.110.0030.08721.00
5.6.100.0130.04020.98
5.6.90.0070.08021.07
5.6.80.0170.07320.44
5.5.350.0300.08320.44
5.5.340.0170.07317.99
5.5.330.0030.05720.41
5.5.320.0630.06720.36
5.5.310.0330.07320.19
5.5.300.0130.03718.02
5.5.290.0070.07318.09
5.5.280.0100.08020.98
5.5.270.0170.08320.80
5.5.260.0100.08020.89
5.5.250.0130.08020.70
5.5.240.0130.07020.14

preferences:
34.04 ms | 401 KiB | 5 Q