3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bar() { return 'bar'; } $foo = 'bar'; var_dump($foo === $foo()); // make this output 'bool(true)'

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.0090.00916.63
8.3.50.0100.01018.02
8.3.40.0040.01118.75
8.3.30.0000.01418.54
8.3.20.0070.00020.07
8.3.10.0000.00723.54
8.3.00.0040.00419.79
8.2.180.0100.01016.50
8.2.170.0140.00022.96
8.2.160.0080.00619.07
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00421.00
8.2.120.0070.00026.35
8.2.110.0100.00022.05
8.2.100.0040.00717.91
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0030.00517.75
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0000.00722.20
8.2.30.0050.00321.00
8.2.20.0040.00417.96
8.2.10.0040.00417.91
8.2.00.0040.00417.86
8.1.280.0210.00325.92
8.1.270.0040.00422.18
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00620.93
8.1.230.0080.00319.17
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0040.00417.10
8.1.190.0040.00417.23
8.1.180.0000.00718.10
8.1.170.0050.00318.65
8.1.160.0030.00318.94
8.1.150.0000.00718.72
8.1.140.0050.00319.46
8.1.130.0000.00718.83
8.1.120.0030.00417.42
8.1.110.0040.00417.44
8.1.100.0040.00417.39
8.1.90.0030.00617.29
8.1.80.0080.00017.39
8.1.70.0040.00417.28
8.1.60.0000.00817.48
8.1.50.0040.00417.52
8.1.40.0040.00417.38
8.1.30.0000.00817.70
8.1.20.0040.00417.59
8.1.10.0000.00717.53
8.1.00.0060.00317.39
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0040.00418.44
8.0.270.0030.00317.19
8.0.260.0030.00318.67
8.0.250.0030.00316.89
8.0.240.0000.00816.80
8.0.230.0050.00516.86
8.0.220.0050.00316.69
8.0.210.0050.00216.83
8.0.200.0040.00416.95
8.0.190.0000.00816.83
8.0.180.0000.00816.86
8.0.170.0000.00716.78
8.0.160.0030.00316.81
8.0.150.0000.00816.83
8.0.140.0000.00716.82
8.0.130.0000.00613.32
8.0.120.0040.00416.79
8.0.110.0040.00316.77
8.0.100.0000.00716.69
8.0.90.0000.00716.72
8.0.80.0100.00816.81
8.0.70.0040.00416.88
8.0.60.0000.00716.61
8.0.50.0030.00516.64
8.0.30.0110.00817.16
8.0.20.0120.00817.40
8.0.10.0040.00416.76
8.0.00.0070.01016.76
7.4.330.0000.00515.55
7.4.320.0060.00016.45
7.4.300.0070.00016.40
7.4.290.0000.00716.39
7.4.280.0040.00416.50
7.4.270.0000.00716.35
7.4.260.0040.00416.56
7.4.250.0030.00316.45
7.4.240.0030.00316.63
7.4.230.0070.00016.50
7.4.220.0090.01016.62
7.4.210.0070.00816.59
7.4.200.0030.00316.39
7.4.160.0090.00916.39
7.4.150.0090.01617.40
7.4.140.0100.00917.86
7.4.130.0130.01016.51
7.4.120.0120.00916.53
7.4.110.0060.00916.38
7.4.100.0090.00916.52
7.4.90.0060.01216.43
7.4.80.0090.00919.39
7.4.70.0090.00916.48
7.4.60.0090.01316.54
7.4.50.0100.00516.55
7.4.40.0120.00316.38
7.4.30.0100.00616.34
7.4.00.0060.00914.59
7.3.330.0020.00213.25
7.3.320.0020.00213.28
7.3.310.0040.00416.21
7.3.300.0040.00416.27
7.3.290.0070.00016.25
7.3.280.0080.00816.27
7.3.270.0150.00317.40
7.3.260.0060.01616.22
7.3.250.0100.00916.34
7.3.240.0100.00616.30
7.3.230.0080.00816.35
7.3.210.0090.00616.19
7.3.200.0050.01116.35
7.3.190.0090.00916.38
7.3.180.0130.01016.28
7.3.170.0100.00716.20
7.3.160.0130.00916.44
7.3.10.0000.01316.34
7.3.00.0070.00416.52
7.2.330.0040.01516.59
7.2.320.0100.00716.61
7.2.310.0080.00816.65
7.2.300.0110.00616.54
7.2.290.0030.01416.63
7.2.130.0130.00316.73
7.2.120.0060.00616.74
7.2.110.0030.00716.61
7.2.100.0060.00616.85
7.2.90.0030.01216.80
7.2.80.0070.00716.80
7.2.70.0140.00016.83
7.2.60.0020.01116.96
7.2.50.0080.00816.78
7.2.40.0100.00616.86
7.2.30.0040.01116.83
7.2.20.0000.01316.91
7.2.10.0100.00616.95
7.2.00.0070.00716.88
7.1.250.0090.00315.58
7.1.200.0060.00615.43
7.1.70.0060.01117.28
7.1.60.0220.00934.75
7.1.50.0180.01234.76
7.1.40.0230.01334.41
7.1.30.0240.01534.48
7.1.20.0200.01734.53
7.1.10.0070.01416.59
7.1.00.0060.00916.60
7.0.200.0060.00916.82
7.0.190.0090.00916.64
7.0.180.0070.01316.16
7.0.170.0090.00916.28
7.0.160.0000.01816.20
7.0.150.0120.00916.18
7.0.140.0070.00716.26
7.0.130.0060.01216.40
7.0.120.0090.00916.38
7.0.110.0030.01316.28
7.0.100.0150.00616.36
7.0.90.0080.00816.26
7.0.80.0070.00716.28
7.0.70.0090.00616.21
7.0.60.0080.01016.29
7.0.50.0030.01216.25
7.0.40.0060.01116.54
7.0.30.0140.00016.63
7.0.20.0100.00616.44
7.0.10.0100.00616.37
7.0.00.0030.01616.31

preferences:
94.8 ms | 400 KiB | 5 Q