3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunc(){ return ["status" => true]; } if ( myfunc()['status'] ){ echo "the status is 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.0060.00918.18
8.3.50.0110.00716.51
8.3.40.0070.01118.58
8.3.30.0040.01118.70
8.3.20.0000.00819.14
8.3.10.0040.00423.38
8.3.00.0040.00423.64
8.2.180.0060.01216.50
8.2.170.0070.01122.96
8.2.160.0110.00419.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00220.52
8.2.120.0170.00026.35
8.2.110.0000.01022.25
8.2.100.0040.00719.52
8.2.90.0050.00317.63
8.2.80.0000.01017.97
8.2.70.0050.00317.80
8.2.60.0090.00017.93
8.2.50.0050.00318.10
8.2.40.0070.00020.99
8.2.30.0070.00019.19
8.2.20.0000.00718.00
8.2.10.0040.00418.00
8.2.00.0040.00419.34
8.1.280.0060.00925.92
8.1.270.0040.00422.07
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0030.00620.52
8.1.230.0030.00717.70
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0000.00817.23
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0050.00318.82
8.1.160.0000.00718.72
8.1.150.0080.00018.67
8.1.140.0050.00318.89
8.1.130.0000.00718.94
8.1.120.0030.00717.36
8.1.110.0000.00817.35
8.1.100.0000.00717.31
8.1.90.0070.00317.35
8.1.80.0000.00717.23
8.1.70.0000.00817.23
8.1.60.0030.00617.50
8.1.50.0050.00517.39
8.1.40.0000.00817.46
8.1.30.0000.00817.53
8.1.20.0030.00917.41
8.1.10.0030.00617.52
8.1.00.0040.00717.35
8.0.300.0030.00518.77
8.0.290.0000.00916.75
8.0.280.0060.00318.38
8.0.270.0000.00717.20
8.0.260.0000.00617.20
8.0.250.0000.00716.82
8.0.240.0030.00316.79
8.0.230.0030.00316.70
8.0.220.0000.00816.79
8.0.210.0000.00716.63
8.0.200.0030.00316.74
8.0.190.0030.00616.79
8.0.180.0070.00016.76
8.0.170.0030.00616.86
8.0.160.0040.00416.74
8.0.150.0000.01016.66
8.0.140.0070.00016.68
8.0.130.0030.00313.18
8.0.120.0060.00316.70
8.0.110.0040.00416.76
8.0.100.0050.00316.63
8.0.90.0000.00716.82
8.0.80.0100.00716.74
8.0.70.0000.00716.61
8.0.60.0070.00016.82
8.0.50.0000.00816.88
8.0.30.0070.01117.01
8.0.20.0170.00417.40
8.0.10.0000.00716.68
8.0.00.0120.00616.80
7.4.330.0000.00515.55
7.4.320.0000.00616.43
7.4.300.0040.00416.42
7.4.290.0060.00016.52
7.4.280.0040.00416.29
7.4.270.0060.00316.35
7.4.260.0070.00016.40
7.4.250.0000.00716.48
7.4.240.0050.00216.47
7.4.230.0030.00516.48
7.4.220.0000.00716.34
7.4.210.0040.01116.46
7.4.200.0030.00316.43
7.4.160.0100.01116.46
7.4.140.0090.00917.86
7.4.130.0130.00516.47
7.4.120.0100.00816.39
7.4.110.0140.00316.36
7.4.100.0060.01216.43
7.4.90.0090.01616.32
7.4.80.0240.00019.39
7.4.70.0090.00916.31
7.4.60.0040.01416.45
7.4.50.0130.00016.11
7.4.40.0120.00616.44
7.4.00.0110.00614.65
7.3.330.0000.00613.32
7.3.320.0000.00613.29
7.3.310.0020.00516.32
7.3.300.0030.00316.31
7.3.290.0040.00416.27
7.3.280.0080.00916.28
7.3.260.0110.00816.38
7.3.240.0110.00816.32
7.3.230.0140.00416.36
7.3.210.0090.00916.36
7.3.200.0080.01216.50
7.3.190.0070.01016.60
7.3.180.0100.00716.38
7.3.170.0090.00616.48
7.3.160.0070.01016.58
7.3.120.0090.00614.64
7.3.110.0070.00714.96
7.3.100.0080.00814.94
7.3.90.0070.01014.77
7.3.80.0070.00414.76
7.3.70.0060.00614.78
7.3.60.0110.00014.70
7.3.50.0090.00614.68
7.3.40.0100.00314.84
7.3.30.0000.01514.76
7.3.20.0000.01416.70
7.3.10.0070.00316.82
7.3.00.0100.00416.42
7.2.330.0130.00616.25
7.2.320.0130.00716.42
7.2.310.0110.00716.35
7.2.300.0030.01916.76
7.2.290.0070.01116.78
7.2.250.0040.01814.94
7.2.240.0070.01015.11
7.2.230.0060.01015.21
7.2.220.0030.00714.92
7.2.210.0060.00914.82
7.2.200.0150.00015.04
7.2.190.0030.01014.73
7.2.180.0060.00915.00
7.2.170.0140.00715.12
7.2.80.0470.00014.36
7.2.70.0300.01115.07
7.2.60.0520.01414.86
7.2.50.0370.01015.02
7.2.40.0310.01015.05
7.2.30.1290.01014.56
7.2.20.0340.00915.11
7.2.10.0310.00714.95
7.2.00.0340.01015.04
7.1.330.0060.00615.52
7.1.320.0040.00715.55
7.1.310.0000.01015.73
7.1.300.0040.00415.34
7.1.290.0060.00915.74
7.1.280.0070.01415.83
7.1.270.0030.00715.68
7.1.260.0040.01115.91
7.1.200.0030.00715.71
7.1.190.0320.00913.80
7.1.180.0390.00313.80
7.1.170.0530.01413.82
7.1.160.0330.00713.47
7.1.150.0390.00313.79
7.1.140.0340.00313.80
7.1.130.0310.00813.73
7.1.120.0360.01013.95
7.1.110.0420.01513.68
7.1.100.0270.01313.79
7.1.90.0330.00713.61
7.1.80.0290.01013.88
7.1.70.0280.00813.82
7.1.60.0560.01531.61
7.1.50.0510.00731.71
7.1.40.0410.01731.74
7.1.30.0760.01031.67
7.1.20.0440.01431.50
7.1.10.0370.00613.75
7.1.00.0350.00913.85

preferences:
59.89 ms | 400 KiB | 5 Q