3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = "New"; $closure = (function($bar) use ($foo) { echo "$foo $bar"; })("York");

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.4.20.0120.00817.69
8.4.10.0150.00420.54
8.3.150.0040.01517.01
8.3.140.0110.00716.41
8.3.130.0040.00418.30
8.3.120.0030.01220.78
8.3.110.0050.00320.94
8.3.100.0080.00024.06
8.3.90.0030.00526.77
8.3.80.0030.00616.50
8.3.70.0190.00716.58
8.3.60.0140.00917.38
8.3.50.0120.00520.75
8.3.40.0170.00318.13
8.3.30.0190.00017.98
8.3.20.0090.00619.63
8.3.10.0150.00220.56
8.3.00.0100.00518.55
8.2.270.0100.01017.24
8.2.260.0100.00316.48
8.2.250.0140.00416.84
8.2.240.0060.00318.87
8.2.230.0060.00322.58
8.2.220.0070.00337.54
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0160.00317.44
8.2.180.0110.00721.27
8.2.170.0190.00418.18
8.2.160.0230.00720.23
8.2.150.0180.00921.58
8.2.140.0110.00920.96
8.2.130.0130.00921.77
8.2.120.0150.00418.31
8.2.110.0110.00818.93
8.2.100.0160.00317.55
8.2.90.0120.00318.17
8.2.80.0100.00517.74
8.2.70.0100.00617.44
8.2.60.0080.00817.71
8.2.50.0110.00417.79
8.2.40.0100.00518.31
8.2.30.0100.00617.69
8.2.20.0140.00317.52
8.2.10.0160.00317.77
8.2.00.0100.00617.72
8.1.310.0040.00416.83
8.1.300.0030.00619.35
8.1.290.0130.00030.84
8.1.280.0180.00521.25
8.1.270.0170.00020.88
8.1.260.0150.00321.79
8.1.250.0120.00322.67
8.1.240.0110.00818.07
8.1.230.0200.00518.26
8.1.220.0200.00617.57
8.1.210.0130.01317.82
8.1.200.0170.00517.29
8.1.190.0160.00717.11
8.1.180.0140.01017.54
8.1.170.0140.00817.82
8.1.160.0150.00417.79
8.1.150.0160.00617.82
8.1.140.0120.00718.03
8.1.130.0130.00417.31
8.1.120.0110.00417.46
8.1.110.0090.00617.39
8.1.100.0100.00517.37
8.1.90.0110.00717.31
8.1.80.0140.00117.33
8.1.70.0140.00217.31
8.1.60.0140.00317.47
8.1.50.0080.00817.51
8.1.40.0120.00317.48
8.1.30.0090.00817.49
8.1.20.0140.00317.49
8.1.10.0150.00617.46
8.1.00.0130.00417.48
8.0.300.0120.00117.70
8.0.290.0110.00416.96
8.0.280.0110.00317.54
8.0.270.0110.00617.00
8.0.260.0120.00216.97
8.0.250.0080.00717.04
8.0.240.0090.00717.05
8.0.230.0120.00517.03
8.0.220.0150.00216.99
8.0.210.0130.00316.99
8.0.200.0130.00417.06
8.0.190.0110.00617.06
8.0.180.0090.00817.00
8.0.170.0120.00317.00
8.0.160.0160.00217.03
8.0.150.0080.00717.03
8.0.140.0120.00417.00
8.0.130.0150.00015.80
8.0.120.0110.00616.98
8.0.110.0140.00216.98
8.0.100.0140.00117.06
8.0.90.0090.00517.04
8.0.80.0110.00717.04
8.0.70.0130.00317.04
8.0.60.0120.00317.04
8.0.50.0070.00816.97
8.0.30.0140.00917.11
8.0.20.0150.00417.25
8.0.10.0120.00717.14
8.0.00.0110.00817.02
7.4.330.0110.00416.44
7.4.320.0110.00416.94
7.4.300.0080.00616.90
7.4.290.0120.00216.89
7.4.280.0070.00816.94
7.4.270.0080.00616.87
7.4.260.0090.00616.86
7.4.250.0110.00316.87
7.4.240.0100.00416.90
7.4.230.0130.00116.93
7.4.220.0140.00616.88
7.4.210.0060.01216.91
7.4.200.0090.00416.89
7.4.190.0080.00717.10
7.4.180.0180.00017.10
7.4.160.0090.00716.75
7.4.150.0130.00617.07
7.4.140.0130.00717.28
7.4.130.0140.00716.76
7.4.120.0130.00816.71
7.4.110.0150.00816.81
7.4.100.0110.01016.74
7.4.90.0130.00716.67
7.4.80.0090.01017.00
7.4.70.0140.00716.70
7.4.60.0110.01016.69
7.4.50.0130.00816.70
7.4.40.0140.00716.65
7.4.30.0140.00816.68
7.4.20.0130.00916.70
7.4.10.0120.00816.54
7.4.00.0110.00816.26
7.3.330.0090.00515.83
7.3.320.0080.00615.85
7.3.310.0120.00416.80
7.3.300.0100.00716.85
7.3.290.0140.00416.65
7.3.280.0120.00816.68
7.3.270.0120.00817.06
7.3.260.0110.00916.80
7.3.250.0140.00916.67
7.3.240.0140.00816.65
7.3.230.0150.00716.72
7.3.220.0180.00716.70
7.3.210.0140.00716.62
7.3.200.0140.00716.63
7.3.190.0130.00816.71
7.3.180.0100.01016.74
7.3.170.0150.00716.67
7.3.160.0130.01016.68
7.3.150.0140.00716.71
7.3.140.0140.00616.63
7.3.130.0140.00716.43
7.3.120.0140.00516.29
7.3.110.0110.00916.24
7.3.100.0130.00616.31
7.3.90.0120.00615.87
7.3.80.0130.00615.86
7.3.70.0140.00615.78
7.3.60.0100.00815.85
7.3.50.0100.00815.82
7.3.40.0120.00715.80
7.3.30.0110.00815.80
7.3.20.0440.00816.47
7.3.10.0110.00816.51
7.3.00.0760.00916.46
7.2.340.0180.00916.85
7.2.330.0150.00916.77
7.2.320.0160.00716.78
7.2.310.0140.00916.69
7.2.300.0160.00916.77
7.2.290.0140.00816.80
7.2.280.0150.00716.78
7.2.270.0160.00916.78
7.2.260.0160.00616.52
7.2.250.0120.01016.41
7.2.240.0140.00816.44
7.2.230.0140.00716.42
7.2.220.0130.00616.07
7.2.210.0100.00915.88
7.2.200.0140.00715.98
7.2.190.0110.00915.97
7.2.180.0130.00716.00
7.2.170.0090.01016.02
7.2.160.0120.00816.10
7.2.150.0660.00916.76
7.2.140.0690.01016.69
7.2.130.0230.00916.70
7.2.120.0730.01016.73
7.2.110.0490.00816.57
7.2.100.0440.01016.38
7.2.90.0420.01016.43
7.2.80.0530.01016.48
7.2.70.0400.00816.44
7.2.60.0430.00916.50
7.2.50.0390.00816.46
7.2.40.0300.00916.44
7.2.30.0220.00916.57
7.2.20.0270.00916.60
7.2.10.0360.01016.58
7.2.00.0270.00716.60
7.1.330.0150.00816.10
7.1.320.0170.00515.71
7.1.310.0180.00715.72
7.1.300.0130.00715.83
7.1.290.0140.00715.86
7.1.280.0150.00915.82
7.1.270.0130.00815.86
7.1.260.0150.00715.81
7.1.250.0240.00615.67
7.1.240.0510.00715.67
7.1.230.0660.00815.51
7.1.220.0560.00715.38
7.1.210.0460.00815.44
7.1.200.0510.00715.41
7.1.190.0330.00815.39
7.1.180.0310.00815.37
7.1.170.0330.00815.42
7.1.160.0330.00715.37
7.1.150.0240.00815.47
7.1.140.0300.00915.42
7.1.130.0380.00715.43
7.1.120.0300.00715.56
7.1.110.0280.00715.52
7.1.100.0290.00915.50
7.1.90.0190.00715.46
7.1.80.0220.00815.47
7.1.70.0270.00515.42
7.1.60.0220.00919.38
7.1.50.0260.00919.42
7.1.40.0420.00919.35
7.1.30.0230.00919.38
7.1.20.0220.00719.33
7.1.10.0180.00915.31
7.1.00.0220.00915.18
7.0.330.0700.00915.40
7.0.320.0510.00915.38
7.0.310.0450.00715.13
7.0.300.0310.00915.15
7.0.290.0320.00615.09
7.0.280.0280.00815.11
7.0.270.0280.00915.24
7.0.260.0270.00915.25
7.0.250.0280.00815.21
7.0.240.0270.00915.26
7.0.230.0300.00915.22
7.0.220.0220.00715.24
7.0.210.0370.00615.09
7.0.200.0200.00715.10
7.0.190.0270.00815.23
7.0.180.0230.00715.19
7.0.170.0320.00815.13
7.0.160.0250.00815.09
7.0.150.0310.00815.21
7.0.140.0200.00815.14
7.0.130.0400.00815.05
7.0.120.0240.00815.09
7.0.110.0210.00715.05
7.0.100.0210.00815.08
7.0.90.0280.00715.08
7.0.80.0200.00815.05
7.0.70.0240.00714.97
7.0.60.0240.00714.93
7.0.50.0190.00915.00
7.0.40.0180.00714.99
7.0.30.0200.00814.99
7.0.20.0200.00915.00
7.0.10.0180.00814.98
7.0.00.0220.00714.99
5.6.400.0150.00815.51
5.6.390.0140.00815.44
5.6.380.0140.00915.21
5.6.370.0180.01015.18
5.6.360.0170.00715.25
5.6.350.0150.01115.16
5.6.340.0140.00915.18
5.6.330.0150.00815.21
5.6.320.0120.01115.22
5.6.310.0160.00915.17
5.6.300.0160.01515.82
5.6.290.0180.01315.86
5.6.280.0170.01215.91
5.6.270.0130.01615.92
5.6.260.0130.01715.91
5.6.250.0170.01315.86
5.6.240.0140.01615.85
5.6.230.0150.01615.87
5.6.220.0160.01415.84
5.6.210.0160.01415.84
5.6.200.0150.01515.87
5.6.190.0170.01315.87
5.6.180.0150.01515.87
5.6.170.0140.01615.90
5.6.160.0170.01515.88
5.6.150.0150.01615.85
5.6.140.0170.01415.86
5.6.130.0150.01515.82
5.6.120.0160.01515.83
5.6.110.0130.01515.84
5.6.100.0150.01515.87
5.6.90.0130.01615.77
5.6.80.0150.01215.73
5.6.70.0140.01615.76
5.6.60.0130.01515.71
5.6.50.0150.01315.69
5.6.40.0140.01515.72
5.6.30.0140.01415.73
5.6.20.0150.01315.74
5.6.10.0150.01415.75
5.6.00.0140.01415.71

preferences:
28.74 ms | 403 KiB | 5 Q