3v4l.org

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

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.40.0110.00418.58
8.3.30.0080.00618.75
8.3.20.0080.00020.34
8.3.10.0040.00421.90
8.3.00.0040.00417.79
8.2.170.0090.00622.96
8.2.160.0030.01020.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.38
8.2.110.0030.00621.18
8.2.100.0060.00617.75
8.2.90.0110.00019.18
8.2.80.0080.00017.97
8.2.70.0040.00617.38
8.2.60.0040.00417.68
8.2.50.0030.00518.07
8.2.40.0020.00519.46
8.2.30.0000.00720.50
8.2.20.0000.00817.55
8.2.10.0060.00317.98
8.2.00.0070.00018.05
8.1.270.0030.00623.76
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0080.00021.31
8.1.230.0070.00417.58
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0090.00017.35
8.1.190.0050.00317.23
8.1.180.0000.00718.10
8.1.170.0050.00318.55
8.1.160.0000.00722.12
8.1.150.0070.00018.84
8.1.140.0070.00317.45
8.1.130.0000.00817.66
8.1.120.0000.00717.51
8.1.110.0000.00717.48
8.1.100.0040.00417.43
8.1.90.0030.00617.36
8.1.80.0030.00517.43
8.1.70.0000.00717.47
8.1.60.0040.00417.48
8.1.50.0040.00417.51
8.1.40.0040.00717.54
8.1.30.0080.00017.68
8.1.20.0000.00717.59
8.1.10.0040.00417.46
8.1.00.0020.00517.37
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.34
8.0.270.0040.00417.25
8.0.260.0030.00317.14
8.0.250.0040.00316.97
8.0.240.0040.00416.98
8.0.230.0030.00316.89
8.0.220.0000.00716.80
8.0.210.0000.00716.71
8.0.200.0030.00316.91
8.0.190.0040.00416.80
8.0.180.0070.00016.80
8.0.170.0000.00816.91
8.0.160.0040.00416.78
8.0.150.0070.00016.86
8.0.140.0050.00316.77
8.0.130.0060.00313.35
8.0.120.0030.00616.77
8.0.110.0080.00016.71
8.0.100.0040.00416.71
8.0.90.0000.00816.76
8.0.80.0070.01116.81
8.0.70.0070.00016.70
8.0.60.0000.00816.85
8.0.50.0040.00416.90
8.0.30.0100.00817.03
8.0.20.0080.01117.40
8.0.10.0000.00716.97
8.0.00.0080.01016.77
7.4.330.0030.00315.10
7.4.320.0030.00316.49
7.4.300.0000.00616.49
7.4.290.0030.00316.59
7.4.280.0050.00516.41
7.4.270.0030.00316.48
7.4.260.0030.00316.60
7.4.250.0050.00216.54
7.4.240.0050.00216.64
7.4.230.0030.00316.30
7.4.220.0110.00616.46
7.4.210.0090.00616.67
7.4.200.0040.00416.48
7.4.160.0150.00016.21
7.4.150.0110.00717.40
7.4.140.0150.00517.86
7.4.130.0130.01216.44
7.4.120.0080.00916.43
7.4.110.0090.00916.56
7.4.100.0160.00616.63
7.4.90.0100.01016.39
7.4.80.0130.01319.39
7.4.70.0100.01016.53
7.4.60.0030.01616.48
7.4.50.0080.00016.38
7.4.40.0070.01016.57
7.4.30.0170.00016.31
7.4.00.0070.01014.85
7.3.330.0000.00613.12
7.3.320.0020.00213.22
7.3.310.0000.00716.33
7.3.300.0030.00316.31
7.3.290.0090.00816.27
7.3.280.0090.00616.30
7.3.270.0110.01117.40
7.3.260.0090.00616.54
7.3.250.0080.01016.32
7.3.240.0100.00616.46
7.3.230.0060.01216.55
7.3.210.0100.00716.25
7.3.200.0000.01616.22
7.3.190.0070.01316.39
7.3.180.0030.01416.35
7.3.170.0030.01316.36
7.3.160.0100.00616.48
7.2.330.0120.00616.61
7.2.320.0030.02016.52
7.2.310.0000.01716.38
7.2.300.0070.01116.70
7.2.290.0030.01716.40
7.2.80.0000.01516.35
7.2.60.0140.00016.72
7.2.00.0070.00719.59
7.1.200.0080.00415.58
7.1.100.0040.00817.81
7.1.70.0040.00417.12
7.1.60.0100.01019.20
7.1.50.0100.01316.81
7.1.00.0130.06322.40
7.0.200.0060.00316.52
7.0.60.0200.06319.94
7.0.50.0100.07017.77
7.0.40.0070.04020.18
7.0.30.0270.06020.10
7.0.20.0370.06320.08
7.0.10.0130.07720.24
7.0.00.0070.04020.15
5.6.280.0000.06721.04
5.6.210.0130.07720.63
5.6.200.0070.08318.16
5.6.190.0070.04320.34
5.6.180.0070.05020.68
5.6.170.0170.04320.51
5.6.160.0070.04320.39
5.6.150.0100.05018.18
5.6.140.0070.08318.12
5.6.130.0070.04018.12
5.6.120.0070.03720.96
5.6.110.0030.08020.99
5.6.100.0100.07720.97
5.6.90.0070.08320.97
5.6.80.0070.03720.44
5.5.350.0270.07020.44
5.5.340.0070.08018.06
5.5.330.0070.09020.28
5.5.320.0030.04320.31
5.5.310.0270.07320.34
5.5.300.0130.07317.99
5.5.290.0070.03718.08
5.5.280.0130.05720.80
5.5.270.0030.04020.88
5.5.260.0000.07320.97
5.5.250.0070.06720.69
5.5.240.0100.07320.19
5.4.450.0400.07019.64
5.4.440.0600.06319.38
5.4.430.0800.05019.68
5.4.420.0570.06019.47
5.4.410.0670.05719.44
5.4.400.0630.04719.30
5.4.390.0630.05319.25
5.4.380.0730.06718.98
5.4.370.0800.04319.07
5.4.360.0770.07319.03
5.4.350.0630.05319.28
5.4.340.0700.05719.24
5.4.320.0730.05319.31
5.4.310.0770.06019.00
5.4.300.0670.06019.00
5.4.290.0630.05719.27
5.4.280.0700.05318.98
5.4.270.0700.07319.13
5.4.260.0900.07019.14
5.4.250.0600.04719.22
5.4.240.0670.04719.22
5.4.230.0670.05319.12
5.4.220.0700.05019.05
5.4.210.0600.06019.22
5.4.200.0730.05319.12
5.4.190.0670.05319.11
5.4.180.0700.06019.22
5.4.170.0670.05719.27
5.4.160.0500.04019.26
5.4.150.0070.05719.13
5.4.140.0530.06016.48
5.4.130.0630.04716.68
5.4.120.0730.04016.40
5.4.110.0570.06016.52
5.4.100.0670.04716.45
5.4.90.0600.04316.25
5.4.80.0430.05016.43
5.4.70.0270.06316.40
5.4.60.0270.04316.38
5.4.50.0300.06716.33
5.4.40.0200.02716.38
5.4.30.0100.04716.21
5.4.20.0300.05716.51
5.4.10.0330.06316.42

preferences:
57.15 ms | 400 KiB | 5 Q