3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test() { echo "test"; }; echo json_encode($var = test());

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.0060.00918.40
8.3.50.0110.00718.09
8.3.40.0150.00018.75
8.3.30.0110.00418.71
8.3.20.0000.00921.76
8.3.10.0040.00420.28
8.3.00.0040.00419.26
8.2.180.0090.01218.29
8.2.170.0140.00022.96
8.2.160.0100.00319.32
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00419.82
8.2.120.0070.00026.35
8.2.110.0060.00322.26
8.2.100.0120.00017.78
8.2.90.0000.00817.75
8.2.80.0050.00317.97
8.2.70.0080.00017.92
8.2.60.0030.00518.09
8.2.50.0040.00418.10
8.2.40.0040.00419.26
8.2.30.0040.00419.34
8.2.20.0000.00717.92
8.2.10.0050.00219.42
8.2.00.0000.00817.89
8.1.280.0060.01525.92
8.1.270.0050.00320.38
8.1.260.0030.00626.35
8.1.250.0060.00328.09
8.1.240.0030.00622.47
8.1.230.0090.00317.77
8.1.220.0030.00517.76
8.1.210.0040.00418.77
8.1.200.0020.00917.22
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0030.00618.57
8.1.160.0040.00418.72
8.1.150.0000.00718.72
8.1.140.0030.00320.20
8.1.130.0040.00420.16
8.1.120.0030.00817.42
8.1.110.0040.00417.35
8.1.100.0030.00617.36
8.1.90.0020.00517.28
8.1.80.0070.00017.40
8.1.70.0030.00717.30
8.1.60.0000.00817.58
8.1.50.0000.00817.55
8.1.40.0030.00517.51
8.1.30.0040.00417.64
8.1.20.0070.00317.59
8.1.10.0040.00417.55
8.1.00.0030.00517.44
8.0.300.0040.00421.50
8.0.290.0070.00316.75
8.0.280.0000.00818.43
8.0.270.0040.00417.15
8.0.260.0030.00318.43
8.0.250.0030.00316.84
8.0.240.0050.00316.96
8.0.230.0000.00716.85
8.0.220.0000.00716.70
8.0.210.0000.00716.76
8.0.200.0000.00716.84
8.0.190.0000.00716.86
8.0.180.0040.00416.77
8.0.170.0040.00416.90
8.0.160.0040.00316.86
8.0.150.0000.00716.73
8.0.140.0040.00416.77
8.0.130.0000.00513.32
8.0.120.0060.00316.84
8.0.110.0000.00716.84
8.0.100.0000.00716.72
8.0.90.0000.00716.71
8.0.80.0080.00816.77
8.0.70.0040.00416.64
8.0.60.0070.00016.89
8.0.50.0040.00416.70
8.0.30.0070.01017.04
8.0.20.0070.01117.40
8.0.10.0070.00016.99
8.0.00.0130.00716.72
7.4.330.0000.00515.55
7.4.320.0040.00416.44
7.4.300.0030.00316.64
7.4.290.0000.00716.61
7.4.280.0060.00316.57
7.4.270.0030.00316.60
7.4.260.0070.00016.57
7.4.250.0000.00716.46
7.4.240.0030.00316.39
7.4.230.0000.00716.59
7.4.220.0090.00016.62
7.4.210.0080.00716.52
7.4.200.0000.00716.61
7.4.160.0050.01216.38
7.4.140.0100.01117.86
7.4.130.0110.00916.39
7.4.120.0180.00316.40
7.4.110.0100.01016.68
7.4.100.0080.00816.52
7.4.90.0100.00716.30
7.4.80.0100.01019.39
7.4.70.0140.01116.60
7.4.60.0030.01416.46
7.4.50.0070.00716.32
7.4.40.0120.00816.40
7.4.00.0030.01214.87
7.3.330.0050.00013.26
7.3.320.0030.00313.25
7.3.310.0030.00316.10
7.3.300.0000.00716.21
7.3.290.0000.00616.21
7.3.280.0050.01016.27
7.3.260.0090.01216.40
7.3.240.0130.00616.39
7.3.230.0090.00616.52
7.3.210.0070.01016.45
7.3.200.0070.01016.33
7.3.190.0150.00616.31
7.3.180.0130.00316.61
7.3.170.0070.01016.34
7.3.160.0110.00616.28
7.3.120.0030.00714.90
7.3.110.0060.01014.90
7.3.100.0040.01114.81
7.3.90.0090.00614.79
7.3.80.0040.01214.80
7.3.70.0090.00014.77
7.3.60.0030.01414.54
7.3.50.0120.00314.84
7.3.40.0090.00614.88
7.3.30.0130.00014.82
7.3.20.0320.00615.56
7.3.10.0380.00615.56
7.3.00.0290.00615.69
7.2.330.0090.00916.59
7.2.320.0080.00816.31
7.2.310.0080.00816.68
7.2.300.0080.01216.57
7.2.290.0150.00616.70
7.2.250.0090.00914.93
7.2.240.0120.00614.60
7.2.230.0150.00014.96
7.2.220.0070.00715.06
7.2.210.0130.00614.85
7.2.200.0030.01015.00
7.2.190.0030.00715.03
7.2.180.0110.00414.93
7.2.170.0070.00714.86
7.2.150.0560.01014.66
7.2.140.0610.01014.94
7.2.130.0500.00715.07
7.2.120.0580.01015.08
7.2.110.0590.00714.91
7.2.100.0520.01014.77
7.2.90.0550.01014.96
7.2.80.0470.01015.00
7.2.70.0540.00014.86
7.2.60.0580.00715.08
7.2.50.0530.00314.80
7.2.40.0500.00414.93
7.2.30.0550.00014.91
7.2.20.0590.00714.96
7.2.10.0540.00614.66
7.2.00.0600.01314.84
7.1.330.0000.01215.66
7.1.320.0030.01015.57
7.1.310.0000.00915.80
7.1.300.0030.00715.54
7.1.290.0130.00315.46
7.1.280.0120.00015.61
7.1.270.0060.00615.52
7.1.260.0090.00015.59
7.1.250.0690.00613.78

preferences:
31.43 ms | 400 KiB | 5 Q