3v4l.org

run code in 300+ PHP versions simultaneously
<?php function func() { static $x; if (!isset($x)) { $x = 'func'; } echo $x; } func(); func(); func();

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.70.0110.01116.58
8.3.60.0070.01416.50
8.3.50.0030.01016.40
8.3.40.0090.00922.04
8.3.30.0120.00318.32
8.3.20.0040.00424.18
8.3.10.0020.00524.66
8.3.00.0040.00426.16
8.2.190.0110.00716.58
8.2.180.0200.00325.92
8.2.170.0040.01519.09
8.2.160.0040.01122.96
8.2.150.0000.00825.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00426.35
8.2.110.0060.00322.08
8.2.100.0090.00317.72
8.2.90.0030.00619.13
8.2.80.0030.00517.97
8.2.70.0030.00617.63
8.2.60.0040.00417.63
8.2.50.0060.00317.50
8.2.40.0080.00319.89
8.2.30.0040.00418.09
8.2.20.0000.00718.05
8.2.10.0000.00719.28
8.2.00.0000.00719.23
8.1.280.0000.02025.92
8.1.270.0080.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00421.03
8.1.230.0040.00717.82
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0080.00017.23
8.1.180.0110.00418.10
8.1.170.0000.00717.62
8.1.160.0030.00518.99
8.1.150.0000.00718.85
8.1.140.0070.00018.89
8.1.130.0080.00020.16
8.1.120.0030.00317.34
8.1.110.0030.00517.51
8.1.100.0040.00417.45
8.1.90.0040.00417.34
8.1.80.0060.00317.52
8.1.70.0000.00717.38
8.1.60.0050.00317.45
8.1.50.0030.00617.40
8.1.40.0000.00717.54
8.1.30.0000.00817.54
8.1.20.0060.00317.59
8.1.10.0070.00317.45
8.1.00.0000.00917.33
8.0.300.0040.00418.77
8.0.290.0030.00716.75
8.0.280.0000.00718.34
8.0.270.0000.00717.99
8.0.260.0030.00318.45
8.0.250.0070.00316.91
8.0.240.0070.00016.84
8.0.230.0000.00816.84
8.0.220.0030.00416.84
8.0.210.0000.00716.76
8.0.200.0070.00016.93
8.0.190.0050.00316.89
8.0.180.0040.00416.93
8.0.170.0030.00616.88
8.0.160.0000.00816.96
8.0.150.0030.00316.80
8.0.140.0000.00716.84
8.0.130.0060.00013.27
8.0.120.0050.00316.83
8.0.110.0040.00416.79
8.0.100.0000.00716.87
8.0.90.0020.00516.82
8.0.80.0050.00916.78
8.0.70.0060.00316.68
8.0.60.0040.00416.95
8.0.50.0030.00516.68
8.0.30.0090.00917.14
8.0.20.0090.00817.03
8.0.10.0040.00417.05
8.0.00.0140.01016.49
7.4.330.0000.00615.55
7.4.320.0060.00016.64
7.4.300.0030.00316.41
7.4.290.0060.00016.57
7.4.280.0000.00816.55
7.4.270.0040.00416.52
7.4.260.0000.00613.27
7.4.250.0000.00816.47
7.4.240.0000.00716.46
7.4.230.0040.00416.30
7.4.220.0030.00316.53
7.4.210.0060.01116.60
7.4.200.0070.00016.40
7.4.130.0090.00916.53
7.4.120.0070.01316.37
7.4.110.0130.00916.34
7.4.100.0230.00516.39
7.4.90.0170.00816.36
7.4.80.0110.01716.43
7.4.70.0170.00916.50
7.4.60.0190.00716.49
7.4.50.0160.01016.49
7.4.40.0180.00716.14
7.4.30.0150.00816.47
7.4.20.0170.00616.48
7.4.10.0130.01116.56
7.4.00.0280.00216.59
7.3.330.0040.00416.10
7.3.320.0000.00513.06
7.3.310.0040.00416.18
7.3.300.0080.00016.18
7.3.290.0100.00616.30
7.3.260.0130.00916.34
7.3.240.0070.01116.42
7.3.230.0120.01216.20
7.3.220.0220.00516.48
7.3.210.0210.00916.40
7.3.200.0180.01016.20
7.3.190.0200.00916.33
7.3.180.0160.01616.23
7.3.170.0120.01216.29
7.3.160.0190.00916.45
7.3.150.0250.00216.45
7.3.140.0130.01316.35
7.3.130.0190.00816.28
7.3.120.0160.00916.47
7.3.110.0180.01016.51
7.3.100.0140.01616.39
7.3.90.0190.00816.17
7.3.80.0200.00616.32
7.3.70.0160.01116.33
7.3.60.0200.00916.34
7.3.50.0160.01116.32
7.3.40.0160.00516.34
7.3.30.0170.00516.07
7.3.20.0180.00716.27
7.3.10.0170.00716.20
7.3.00.0410.01016.30
7.2.340.0060.01516.11
7.2.330.0170.01316.42
7.2.320.0230.00716.47
7.2.310.0190.00916.18
7.2.300.0210.00416.32
7.2.290.0160.01016.55
7.2.280.0200.00916.45
7.2.270.0100.01716.52
7.2.260.0120.01616.50
7.2.250.0160.01216.47
7.2.240.0210.00916.55
7.2.230.0160.01116.48
7.2.220.0170.01316.45
7.2.210.0190.01016.55
7.2.200.0120.01416.49
7.2.190.0180.01116.42
7.2.180.0170.00816.40
7.2.170.0110.01216.49
7.2.160.0190.00716.44
7.2.150.0150.00916.33
7.2.140.0170.00916.54
7.2.130.0160.00916.43
7.2.120.0220.00616.49
7.2.110.0160.00916.48
7.2.100.0170.01016.51
7.2.90.0200.00616.50
7.2.80.0190.00616.48
7.2.70.0160.01216.48
7.2.60.0170.00816.55
7.2.50.0150.01016.60
7.2.40.0180.01116.53
7.2.30.0210.00716.51
7.2.20.0200.00816.54
7.2.10.0220.01016.59
7.2.00.0210.00716.46
7.0.330.0020.00916.93

preferences:
47.52 ms | 401 KiB | 5 Q