3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 10; $f = function($let)use($var){ return ++$let + $var; }; $var = 15; echo $f(10);

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.130.0120.00618.28
8.3.120.0070.01320.91
8.3.110.0050.00320.94
8.3.100.0030.00524.06
8.3.90.0080.00026.77
8.3.80.0060.00317.97
8.3.70.0140.00718.43
8.3.60.0170.00318.11
8.3.50.0140.00617.24
8.3.40.0080.00818.84
8.3.30.0130.00718.47
8.3.20.0060.00320.34
8.3.10.0040.00422.10
8.3.00.0040.00423.48
8.2.250.0120.00318.50
8.2.240.0030.00617.06
8.2.230.0070.00322.58
8.2.220.0030.00537.54
8.2.210.0060.00326.77
8.2.200.0040.00718.26
8.2.190.0120.00316.58
8.2.180.0120.00318.16
8.2.170.0140.00722.96
8.2.160.0170.00020.39
8.2.150.0000.00825.66
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0030.00620.60
8.2.110.0030.00722.05
8.2.100.0120.00019.46
8.2.90.0040.00419.18
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.56
8.2.50.0040.01017.55
8.2.40.0100.00117.84
8.2.30.0090.00318.37
8.2.20.0060.00617.78
8.2.10.0080.00518.40
8.2.00.0060.00618.22
8.1.300.0090.00020.18
8.1.290.0030.00630.84
8.1.280.0110.00425.92
8.1.270.0000.01424.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00020.98
8.1.230.0040.00817.42
8.1.220.0030.00517.79
8.1.210.0080.00018.77
8.1.200.0000.01017.34
8.1.190.0040.00817.18
8.1.180.0110.00317.49
8.1.170.0090.00517.43
8.1.160.0070.00517.97
8.1.150.0070.00617.95
8.1.140.0070.00518.85
8.1.130.0030.00817.35
8.1.120.0090.00217.29
8.1.110.0080.00517.35
8.1.100.0080.00417.31
8.1.90.0060.00517.47
8.1.80.0040.00817.35
8.1.70.0060.00617.28
8.1.60.0090.00417.55
8.1.50.0070.00517.38
8.1.40.0070.00617.49
8.1.30.0090.00417.47
8.1.20.0040.00817.51
8.1.10.0110.00117.40
8.1.00.0070.00617.38
8.0.300.0030.00618.77
8.0.290.0040.00416.75
8.0.280.0080.00517.48
8.0.270.0100.00216.68
8.0.260.0050.00816.66
8.0.250.0100.00416.78
8.0.240.0090.00316.80
8.0.230.0080.00316.90
8.0.220.0070.00516.84
8.0.210.0070.00516.73
8.0.200.0120.00016.73
8.0.190.0080.00316.83
8.0.180.0100.00216.78
8.0.170.0090.00516.70
8.0.160.0080.00516.77
8.0.150.0060.00716.67
8.0.140.0070.00616.63
8.0.130.0100.00114.90
8.0.120.0060.00616.77
8.0.110.0040.00816.70
8.0.100.0120.00016.70
8.0.90.0080.00416.63
8.0.80.0180.00016.81
8.0.70.0060.00616.75
8.0.60.0100.00016.96
8.0.50.0110.00116.66
8.0.30.0140.00316.80
8.0.20.0120.00616.94
8.0.10.0160.00616.97
8.0.00.0120.01016.87
7.4.330.0050.00416.03
7.4.320.0060.00516.54
7.4.300.0050.00616.56
7.4.290.0090.00316.55
7.4.280.0090.00416.49
7.4.270.0100.00116.47
7.4.260.0090.00316.48
7.4.250.0030.00916.54
7.4.240.0100.00316.49
7.4.230.0080.00316.51
7.4.220.0080.00316.60
7.4.210.0090.00716.57
7.4.200.0110.00016.43
7.4.190.0050.01016.52
7.4.180.0120.00316.52
7.4.160.0140.00516.52
7.4.150.0080.01016.36
7.4.140.0120.00716.49
7.4.130.0090.01016.47
7.4.120.0120.00916.53
7.4.110.0090.00916.50
7.4.100.0100.00816.50
7.4.90.0130.00616.42
7.4.80.0100.01017.20
7.4.70.0100.00816.49
7.4.60.0150.00416.51
7.4.50.0110.00716.44
7.4.40.0140.00716.37
7.4.30.0140.00716.31
7.4.20.0120.00716.43
7.4.10.0130.00716.43
7.4.00.0100.00615.91
7.3.330.0070.00416.39
7.3.320.0080.00214.91
7.3.310.0050.00516.43
7.3.300.0090.00216.34
7.3.290.0110.00516.39
7.3.280.0080.00716.39
7.3.270.0100.00916.33
7.3.260.0110.00916.47
7.3.250.0110.00616.37
7.3.240.0100.00916.40
7.3.230.0100.00716.49
7.3.220.0090.01016.33
7.3.210.0120.00716.25
7.3.200.0100.00816.33
7.3.190.0130.00516.38
7.3.180.0080.01216.37
7.3.170.0100.01016.36
7.3.160.0110.00816.38
7.3.150.0120.00816.31
7.3.140.0130.00516.31
7.3.130.0100.00816.31
7.3.120.0120.00616.02
7.3.110.0110.00616.03
7.3.100.0040.01316.12
7.3.90.0120.01015.97
7.3.80.0130.00415.79
7.3.70.0090.00815.76
7.3.60.0090.00915.70
7.3.50.0150.00615.71
7.3.40.0130.00915.70
7.3.30.0080.00815.75
7.3.20.0120.00716.03
7.3.10.0160.00915.99
7.3.00.0120.00816.11
7.2.340.0160.00816.58
7.2.330.0130.01016.61
7.2.320.0160.00616.61
7.2.310.0110.01016.59
7.2.300.0160.00616.57
7.2.290.0110.01016.59
7.2.280.0160.00716.62
7.2.270.0140.00816.61
7.2.260.0180.00516.52
7.2.250.0140.00716.17
7.2.240.0130.01016.15
7.2.230.0140.00616.06
7.2.220.0130.00916.05
7.2.210.0120.00815.86
7.2.200.0150.00515.89
7.2.190.0120.01015.87
7.2.180.0160.01315.81
7.2.170.0130.00715.92
7.2.160.0200.00915.88
7.2.150.0150.00916.26
7.2.140.0170.01016.25
7.2.130.0170.00716.24
7.2.120.0180.00716.27
7.2.110.0140.00916.26
7.2.100.0170.00616.19
7.2.90.0160.00716.33
7.2.80.0160.00716.25
7.2.70.0160.00916.23
7.2.60.0160.01016.30
7.2.50.0310.01016.31
7.2.40.0200.01016.31
7.2.30.0120.00816.27
7.2.20.0120.00816.28
7.2.10.0150.00616.17
7.2.00.0210.00616.27
7.1.330.0160.00615.58
7.1.320.0080.00715.55
7.1.310.0120.01215.14
7.1.300.0180.00915.13
7.1.290.0170.01015.09
7.1.280.0180.00814.95
7.1.270.0130.00715.07
7.1.260.0130.00615.04
7.1.250.0150.00815.04
7.1.240.0140.00915.41
7.1.230.0130.00815.40
7.1.220.0160.01515.49
7.1.210.0130.00815.45
7.1.200.0130.00915.38
7.1.190.0130.00815.46
7.1.180.0160.00515.31
7.1.170.0120.01115.47
7.1.160.0140.00615.46
7.1.150.0170.01215.37
7.1.140.0150.00615.43
7.1.130.0150.00615.43
7.1.120.0150.00615.43
7.1.110.0140.00715.43
7.1.100.0140.00615.44
7.1.90.0150.00715.46
7.1.80.0140.01015.50
7.1.70.0180.01015.47
7.1.60.0300.00715.34
7.1.50.0130.01215.31
7.1.40.0180.01015.41
7.1.30.0220.00315.42
7.1.20.0150.00915.43
7.1.10.0180.01015.50
7.1.00.0140.01115.44

preferences:
29.82 ms | 403 KiB | 5 Q