3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (function() { return 42; })();

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.0060.00317.52
8.4.10.0040.01517.69
8.3.150.0030.01517.36
8.3.140.0110.00417.25
8.3.130.0000.00818.26
8.3.120.0000.00820.75
8.3.110.0000.00820.94
8.3.100.0110.00716.64
8.3.90.0150.00326.77
8.3.80.0060.00318.31
8.3.70.0030.01316.63
8.3.60.0120.00618.28
8.3.50.0240.00822.88
8.3.40.0080.00818.48
8.3.30.0120.00319.22
8.3.20.0000.00720.16
8.3.10.0040.00421.82
8.3.00.0060.01019.66
8.2.270.0130.00617.13
8.2.260.0140.00316.13
8.2.250.0040.01418.27
8.2.240.0180.00016.84
8.2.230.0100.00022.58
8.2.220.0130.00324.06
8.2.210.0040.00426.77
8.2.200.0000.00918.16
8.2.190.0090.00616.58
8.2.180.0070.01116.37
8.2.170.0070.01022.96
8.2.160.0110.00420.52
8.2.150.0080.00024.18
8.2.140.0110.00324.66
8.2.130.0150.00026.16
8.2.120.0000.00721.00
8.2.110.0050.00519.27
8.2.100.0080.00320.39
8.2.90.0070.00319.36
8.2.80.0030.00518.09
8.2.70.0040.00417.80
8.2.60.0060.00317.91
8.2.50.0040.00418.10
8.2.40.0040.00419.82
8.2.30.0080.00019.36
8.2.20.0000.00817.50
8.2.10.0040.00418.05
8.2.00.0060.00317.63
8.1.310.0000.00718.34
8.1.300.0050.00519.52
8.1.290.0040.00418.88
8.1.280.0070.01025.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00022.10
8.1.230.0070.00320.88
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0100.00017.23
8.1.190.0000.01017.23
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0050.00318.87
8.1.150.0030.00518.81
8.1.140.0000.00817.39
8.1.130.0050.00317.67
8.1.120.0070.00017.38
8.1.110.0030.00517.40
8.1.100.0030.00417.31
8.1.90.0050.00217.39
8.1.80.0030.00317.41
8.1.70.0000.00717.17
8.1.60.0040.00417.55
8.1.50.0000.00817.34
8.1.40.0040.00717.47
8.1.30.0040.00417.44
8.1.20.0080.00017.62
8.1.10.0020.00517.42
8.1.00.0050.00317.50
8.0.300.0050.00519.66
8.0.290.0050.00216.75
8.0.280.0000.00818.41
8.0.270.0000.00717.19
8.0.260.0030.00317.16
8.0.250.0000.00716.97
8.0.240.0000.00616.97
8.0.230.0040.00416.82
8.0.220.0070.00016.71
8.0.210.0070.00016.82
8.0.200.0060.00016.99
8.0.190.0090.00016.84
8.0.180.0000.00716.93
8.0.170.0000.00716.78
8.0.160.0030.00616.93
8.0.150.0050.00316.89
8.0.140.0050.00316.86
8.0.130.0000.00613.35
8.0.120.0060.00316.89
8.0.110.0000.00716.87
8.0.100.0030.00316.83
8.0.90.0040.00416.94
8.0.80.0120.00616.90
8.0.70.0000.00716.85
8.0.60.0050.00216.84
8.0.50.0000.00816.85
8.0.30.0140.00316.93
8.0.20.0090.01017.40
8.0.10.0070.00016.81
8.0.00.0090.00916.71
7.4.330.0070.00015.02
7.4.320.0000.00716.61
7.4.300.0000.00716.50
7.4.290.0030.00316.58
7.4.280.0050.00216.43
7.4.270.0070.00016.61
7.4.260.0030.00316.62
7.4.250.0030.00516.56
7.4.240.0000.00816.54
7.4.230.0060.00016.53
7.4.220.0110.01116.57
7.4.210.0130.00716.62
7.4.200.0030.00316.48
7.4.160.0130.00316.57
7.4.150.0180.00017.40
7.4.140.0120.00517.86
7.4.130.0100.00816.40
7.4.120.0090.00816.48
7.4.110.0060.01216.43
7.4.100.0050.01216.52
7.4.90.0100.00716.50
7.4.80.0130.00319.39
7.4.70.0140.00316.53
7.4.60.0070.01016.52
7.4.50.0090.00016.62
7.4.40.0120.00616.46
7.4.30.0090.01216.48
7.4.00.0030.01314.88
7.3.330.0050.00013.23
7.3.320.0000.00513.26
7.3.310.0000.00616.21
7.3.300.0030.00316.10
7.3.290.0090.00516.16
7.3.280.0050.01116.20
7.3.270.0140.00317.40
7.3.260.0030.01316.30
7.3.250.0050.01216.29
7.3.240.0150.00816.44
7.3.230.0180.00616.39
7.3.210.0060.01016.45
7.3.200.0030.01319.39
7.3.190.0350.01816.13
7.3.180.0070.01416.15
7.3.170.0130.00316.27
7.3.160.0040.01216.49
7.3.10.0090.00316.35
7.3.00.0040.00816.36
7.2.330.0110.00516.54
7.2.320.0040.01316.39
7.2.310.0100.00716.64
7.2.300.0100.01416.49
7.2.290.0120.00416.62
7.2.130.0070.00716.64
7.2.120.0070.00716.87
7.2.110.0090.00316.73
7.2.100.0080.00816.54
7.2.90.0030.01216.56
7.2.80.0360.00915.42
7.2.70.0280.00915.37
7.2.60.0700.00815.36
7.2.50.0970.01015.49
7.2.40.0680.00815.48
7.2.30.0710.00715.23
7.2.20.0660.00515.38
7.2.10.0550.00515.31
7.2.00.0620.00815.34
7.1.250.0000.00915.59
7.1.200.0220.00814.33
7.1.190.0480.00613.64
7.1.180.0420.00513.64
7.1.170.1000.00613.50
7.1.160.0820.00714.42
7.1.150.0870.00914.42
7.1.140.0740.00614.55
7.1.130.0750.00614.39
7.1.120.0860.01014.38
7.1.110.0770.00914.37
7.1.100.1150.00514.19
7.1.90.1040.00614.51
7.1.80.0810.00814.38
7.1.70.0790.00814.14
7.1.60.0810.00932.32
7.1.50.0900.00731.97
7.1.40.1030.01131.82
7.1.30.1060.00932.04
7.1.20.0770.00931.90
7.1.10.0510.00613.91
7.1.00.0570.00613.91
7.0.310.0450.00513.18
7.0.300.0910.00613.12
7.0.290.0890.01014.38
7.0.280.0380.00913.18
7.0.270.0910.00714.37
7.0.260.0900.00614.36
7.0.250.0910.01014.24
7.0.240.0880.00714.17
7.0.230.1060.00914.24
7.0.220.0810.01014.31
7.0.210.0970.00813.84
7.0.200.0740.00613.89
7.0.190.0770.00813.81
7.0.180.0800.00813.57
7.0.170.0940.01013.70
7.0.160.0660.01213.75
7.0.150.0840.01013.74
7.0.140.0700.00613.68
7.0.130.0540.00913.92
7.0.120.0670.00713.80
7.0.110.0630.00913.76
7.0.100.0550.00813.75
7.0.90.0540.00713.68
7.0.80.0670.00713.77
7.0.70.0860.00913.60
7.0.60.0560.00913.80
7.0.50.0620.00813.85
7.0.40.0630.00613.83
7.0.30.0560.01013.80
7.0.20.0670.00913.75
7.0.10.0700.00813.81
7.0.00.0620.00613.75
5.6.300.0100.02516.09
5.6.290.0190.02616.07
5.6.280.0140.02316.28
5.6.270.0130.02716.36
5.6.260.0150.02416.36
5.6.250.0200.02116.37
5.6.240.0160.02416.18
5.6.230.0160.02516.28
5.6.220.0140.02516.23
5.6.210.0140.02716.04
5.6.200.0150.02516.29
5.6.190.0140.02416.17
5.6.180.0090.02916.26
5.6.170.0140.02516.16
5.6.160.0150.02416.21
5.6.150.0190.02616.33
5.6.140.0170.02616.29
5.6.130.0150.02716.20
5.6.120.0130.02516.22
5.6.110.0130.02716.33
5.6.100.0150.02516.16
5.6.90.0130.03216.29
5.6.80.0140.03116.04
5.6.70.0120.02616.17
5.6.60.0160.02316.04
5.6.50.0140.02316.06
5.6.40.0160.02315.97
5.6.30.0140.02515.99
5.6.20.0120.02916.03
5.6.10.0140.02216.00
5.6.00.0150.02516.06
5.5.380.0140.02113.07
5.5.370.0120.02313.08
5.5.360.0110.02413.16
5.5.350.0140.02413.04
5.5.340.0060.02713.28
5.5.330.0120.02113.24
5.5.320.0160.02013.22
5.5.310.0080.02913.26
5.5.300.0140.02013.23
5.5.290.0070.02613.34
5.5.280.0100.02513.20
5.5.270.0120.02213.27
5.5.260.0120.02313.02
5.5.250.0100.02613.21
5.5.240.0140.02912.89
5.5.230.0110.02312.87
5.5.220.0130.02412.98
5.5.210.0130.02813.03
5.5.200.0090.02412.99
5.5.190.0140.02612.90
5.5.180.0130.02212.87
5.5.170.0140.00713.79
5.5.160.0100.02512.76
5.5.150.0130.02413.09
5.5.140.0100.02413.06
5.5.130.0100.02212.92
5.5.120.0130.02212.89
5.5.110.0110.02012.98
5.5.100.0090.02312.87
5.5.90.0100.02213.04
5.5.80.0100.02112.86
5.5.70.0110.02212.98
5.5.60.0140.01812.95
5.5.50.0090.02412.86
5.5.40.0130.02112.92
5.5.30.0130.02612.87
5.5.20.0110.02413.02
5.5.10.0120.02012.72
5.5.00.0130.02112.79
5.4.450.0110.02213.67
5.4.440.0110.02313.67
5.4.430.0100.02313.72
5.4.420.0100.03113.59
5.4.410.0120.02413.68
5.4.400.0120.02013.60
5.4.390.0090.02413.58
5.4.380.0110.02113.55
5.4.370.0130.02013.52
5.4.360.0100.02913.31
5.4.350.0120.02913.48
5.4.340.0130.02313.45
5.4.330.0100.00710.53
5.4.320.0140.02413.30
5.4.310.0080.02413.40
5.4.300.0080.02313.44
5.4.290.0130.01813.44
5.4.280.0150.01913.58
5.4.270.0140.01813.35
5.4.260.0140.01813.43
5.4.250.0130.01813.41
5.4.240.0120.02213.50
5.4.230.0110.02213.33
5.4.220.0110.02213.48
5.4.210.0120.01913.51
5.4.200.0080.02513.51
5.4.190.0090.02413.37
5.4.180.0100.02313.46
5.4.170.0130.02113.59
5.4.160.0100.02213.49
5.4.150.0130.02113.34
5.4.140.0100.02312.73
5.4.130.0120.01812.77
5.4.120.0110.02112.80
5.4.110.0130.02012.69
5.4.100.0140.02112.79
5.4.90.0150.02012.66
5.4.80.0100.02212.77
5.4.70.0110.02012.65
5.4.60.0110.02112.59
5.4.50.0150.01512.68
5.4.40.0110.02112.62
5.4.30.0150.02012.81
5.4.20.0110.02012.68
5.4.10.0110.01912.68
5.4.00.0150.01912.51
5.3.290.0120.02111.79
5.3.280.0120.02011.66
5.3.270.0090.02511.79
5.3.260.0110.02011.71
5.3.250.0140.01811.70
5.3.240.0120.02811.70
5.3.230.0120.02411.70
5.3.220.0110.02011.65
5.3.210.0120.02111.70
5.3.200.0120.02411.68
5.3.190.0100.02411.77
5.3.180.0110.02011.84
5.3.170.0130.01911.73
5.3.160.0140.01811.80
5.3.150.0090.02311.81
5.3.140.0120.02111.74
5.3.130.0120.02111.85
5.3.120.0090.02311.64
5.3.110.0110.02211.75
5.3.100.0080.02411.43
5.3.90.0100.02211.66
5.3.80.0120.01911.53
5.3.70.0090.02111.62
5.3.60.0130.01711.50
5.3.50.0130.02011.60
5.3.40.0120.01711.46
5.3.30.0090.01911.42
5.3.20.0070.02411.46
5.3.10.0130.02011.19
5.3.00.0090.02211.26
5.2.170.0110.0149.93
5.2.160.0080.0199.96
5.2.150.0050.0199.97
5.2.140.0080.0179.95
5.2.130.0090.0159.85
5.2.120.0080.0159.88
5.2.110.0100.0169.94
5.2.100.0080.0229.94
5.2.90.0090.0209.92
5.2.80.0060.0189.92
5.2.70.0080.0189.91
5.2.60.0090.0159.92
5.2.50.0100.0159.90
5.2.40.0070.0179.87
5.2.30.0070.0199.85
5.2.20.0130.0139.90
5.2.10.0080.0159.86
5.2.00.0110.0159.83
5.1.60.0090.0129.52
5.1.50.0110.0119.55
5.1.40.0070.0139.50
5.1.30.0090.0139.63
5.1.20.0090.0139.67
5.1.10.0070.0159.60
5.1.00.0090.0129.63
5.0.50.0090.0099.05
5.0.40.0060.0119.00
5.0.30.0080.0138.96
5.0.20.0060.0128.99
5.0.10.0050.0138.94
5.0.00.0060.0168.85
4.4.90.0050.0088.34
4.4.80.0020.0148.34
4.4.70.0020.0138.34
4.4.60.0060.0088.34
4.4.50.0040.0108.34
4.4.40.0060.0128.34
4.4.30.0040.0098.34
4.4.20.0060.0088.34
4.4.10.0050.0108.34
4.4.00.0050.0128.34
4.3.110.0030.0108.34
4.3.100.0050.0088.34
4.3.90.0060.0078.34
4.3.80.0030.0138.34
4.3.70.0050.0088.34
4.3.60.0060.0088.34
4.3.50.0060.0088.34
4.3.40.0050.0128.34
4.3.30.0050.0088.34
4.3.20.0060.0088.34
4.3.10.0050.0088.34
4.3.00.0030.0108.34

preferences:
70.53 ms | 403 KiB | 5 Q