3v4l.org

run code in 300+ PHP versions simultaneously
<?php $thing = function() { return "thing value"; }; echo $thing; // expected to be "thing value", but in real life, ""

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.00718.39
8.3.50.0100.01121.13
8.3.40.0070.01118.67
8.3.30.0070.01118.86
8.3.20.0070.00020.34
8.3.10.0070.00021.90
8.3.00.0030.00518.04
8.2.180.0160.00016.88
8.2.170.0070.00722.96
8.2.160.0140.00020.52
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0050.00317.75
8.2.110.0090.00019.29
8.2.100.0040.00817.75
8.2.90.0040.00419.14
8.2.80.0080.00017.97
8.2.70.0050.00317.63
8.2.60.0000.00917.80
8.2.50.0000.00818.07
8.2.40.0000.00719.46
8.2.30.0000.00720.54
8.2.20.0000.00817.63
8.2.10.0080.00018.00
8.2.00.0030.00318.05
8.1.280.0090.00625.92
8.1.270.0150.00021.95
8.1.260.0080.00326.35
8.1.250.0070.00028.09
8.1.240.0060.00323.97
8.1.230.0040.00717.66
8.1.220.0070.00017.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00517.35
8.1.180.0070.00018.10
8.1.170.0080.00018.50
8.1.160.0000.00722.00
8.1.150.0000.00718.93
8.1.140.0090.00017.49
8.1.130.0030.00317.75
8.1.120.0000.00817.46
8.1.110.0000.00717.46
8.1.100.0000.00917.46
8.1.90.0100.00017.39
8.1.80.0050.00317.44
8.1.70.0040.00417.32
8.1.60.0040.00417.51
8.1.50.0090.00017.55
8.1.40.0060.00617.43
8.1.30.0000.00917.68
8.1.20.0030.00617.69
8.1.10.0000.00717.59
8.1.00.0030.00517.45
8.0.300.0030.00718.77
8.0.290.0080.00016.88
8.0.280.0040.00418.31
8.0.270.0040.00417.15
8.0.260.0000.00617.13
8.0.250.0000.00716.92
8.0.240.0000.00716.91
8.0.230.0050.00317.00
8.0.220.0030.00316.87
8.0.210.0030.00516.93
8.0.200.0000.00716.94
8.0.190.0000.00817.04
8.0.180.0050.00216.90
8.0.170.0050.00216.84
8.0.160.0000.00717.06
8.0.150.0050.00216.79
8.0.140.0000.00716.88
8.0.130.0040.00413.40
8.0.120.0090.00016.86
8.0.110.0000.00716.85
8.0.100.0040.00416.89
8.0.90.0000.00816.98
8.0.80.0080.00817.02
8.0.70.0000.00716.97
8.0.60.0050.00316.85
8.0.50.0050.00216.80
8.0.30.0090.00917.15
8.0.20.0170.01117.40
8.0.10.0050.00317.02
8.0.00.0130.00616.77
7.4.330.0050.00015.08
7.4.320.0000.00716.59
7.4.300.0040.00416.59
7.4.290.0040.00416.60
7.4.280.0030.00616.47
7.4.270.0000.00616.55
7.4.260.0070.00016.48
7.4.250.0000.00816.32
7.4.240.0020.00516.46
7.4.230.0030.00316.34
7.4.220.0120.01216.68
7.4.210.0040.01016.60
7.4.200.0030.00316.39
7.4.160.0030.01216.30
7.4.150.0030.01417.40
7.4.140.0100.01217.86
7.4.130.0110.01316.46
7.4.120.0100.01116.60
7.4.110.0100.01316.69
7.4.100.0060.01616.50
7.4.90.0070.01116.65
7.4.80.0150.00619.39
7.4.70.0140.00716.43
7.4.60.0040.01216.53
7.4.50.0040.00416.50
7.4.40.0180.00016.49
7.4.30.0060.01616.39
7.4.00.0080.00814.83
7.3.330.0020.00213.28
7.3.320.0000.00513.41
7.3.310.0070.00016.49
7.3.300.0000.00616.32
7.3.290.0060.01216.34
7.3.280.0060.00916.34
7.3.270.0150.00317.40
7.3.260.0090.00816.39
7.3.250.0100.00916.38
7.3.240.0130.00316.66
7.3.230.0090.01116.39
7.3.210.0060.01016.41
7.3.200.0100.00716.46
7.3.190.0040.01216.38
7.3.180.0140.00716.16
7.3.170.0110.00816.49
7.3.160.0060.01016.31
7.3.10.0090.00016.59
7.3.00.0080.00316.60
7.2.330.0120.00916.43
7.2.320.0160.00616.41
7.2.310.0070.01116.64
7.2.300.0130.00316.49
7.2.290.0110.01116.40
7.2.130.0100.00316.74
7.2.120.0040.00716.75
7.2.110.0040.01116.94
7.2.100.0030.00916.65
7.2.90.0060.00916.65
7.2.80.0070.00316.89
7.2.70.0110.00516.72
7.2.60.0080.00816.61
7.2.50.0000.01116.80
7.2.40.0070.00716.45
7.2.30.0070.00716.91
7.2.20.0070.00716.49
7.2.10.0090.00616.80
7.2.00.0080.00518.14
7.1.250.0070.00315.86
7.1.200.0060.00915.58
7.1.100.0070.01018.20
7.1.70.0050.00516.96
7.1.60.0000.02219.20
7.1.50.0140.00716.89
7.1.00.0030.07722.51
7.0.200.0000.00916.61
7.0.60.0100.08319.85
7.0.50.0030.08317.80
7.0.40.0030.08020.10
7.0.30.0270.04020.20
7.0.20.0270.07720.10
7.0.10.0070.09020.07
7.0.00.0100.08020.19
5.6.280.0130.06020.91
5.6.210.0070.04720.65
5.6.200.0030.04018.16
5.6.190.0070.04020.39
5.6.180.0500.06320.68
5.6.170.0200.04320.50
5.6.160.0030.08320.61
5.6.150.0130.04718.14
5.6.140.0070.08018.16
5.6.130.0130.07718.18
5.6.120.0170.07720.96
5.6.110.0070.06721.09
5.6.100.0000.08020.98
5.6.90.0100.07721.08
5.6.80.0100.03720.29
5.5.350.0300.07720.37
5.5.340.0030.08317.93
5.5.330.0000.04320.44
5.5.320.0030.08720.30
5.5.310.0230.06320.32
5.5.300.0000.04018.08
5.5.290.0000.09018.02
5.5.280.0030.08320.62
5.5.270.0170.07720.75
5.5.260.0100.08320.76
5.5.250.0000.05720.46
5.5.240.0030.07720.26
5.4.450.0730.06019.55
5.4.440.0870.04319.58
5.4.430.0600.05319.30
5.4.420.0600.05319.61
5.4.410.0570.05719.16
5.4.400.0600.05719.27
5.4.390.0770.05019.25
5.4.380.0700.06719.30
5.4.370.0700.07019.26
5.4.360.0870.07319.15
5.4.350.0700.04719.28
5.4.340.0670.05719.23
5.4.320.0600.06019.32
5.4.310.0730.05319.16
5.4.300.0730.05319.17
5.4.290.0730.05019.28
5.4.280.0600.05719.11
5.4.270.0700.05318.87
5.4.260.0770.07019.30
5.4.250.0700.05019.27
5.4.240.0770.04319.24
5.4.230.0770.04719.14
5.4.220.0700.04318.87
5.4.210.0630.05719.14
5.4.200.0770.04319.12
5.4.190.0700.05719.14
5.4.180.0700.05719.14
5.4.170.0670.05719.35
5.4.160.0570.05318.82
5.4.150.0630.05019.23
5.4.140.0600.05716.38
5.4.130.0600.04716.40
5.4.120.0670.05016.43
5.4.110.0770.04716.60
5.4.100.0730.04316.28
5.4.90.0500.05716.61
5.4.80.0600.05316.50
5.4.70.0270.04316.44
5.4.60.0130.06316.38
5.4.50.0270.05016.48
5.4.40.0070.04016.44
5.4.30.0170.06316.55
5.4.20.0230.04716.43
5.4.10.0300.07016.43

preferences:
51.06 ms | 401 KiB | 5 Q