3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=400; $y=0.75; $z=1.5; echo $test = ($x + 2*$y - ($x/2 + 2*$z))/2;

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.5.20.0180.00718.60
8.5.10.0200.00517.81
8.5.00.0120.01018.37
8.4.170.0120.01223.99
8.4.160.0160.01022.13
8.4.150.0160.00416.69
8.4.140.0210.00817.53
8.4.130.0190.00918.09
8.4.120.0170.00420.75
8.4.110.0230.01018.31
8.4.100.0160.00517.74
8.4.90.0210.00719.04
8.4.80.0150.00718.14
8.4.70.0220.01018.16
8.4.60.0160.00419.02
8.4.50.0120.00418.13
8.4.40.0210.00718.80
8.4.30.0190.00419.84
8.4.20.0150.00718.07
8.4.10.0170.01019.71
8.3.300.0210.01018.21
8.3.290.0190.00919.54
8.3.280.0220.00818.35
8.3.270.0250.01016.56
8.3.260.0260.00516.64
8.3.250.0210.01017.61
8.3.240.0260.00716.81
8.3.230.0250.00616.60
8.3.220.0250.00817.74
8.3.210.0220.00816.70
8.3.200.0200.00816.42
8.3.190.0220.01116.94
8.3.180.0250.00716.67
8.3.170.0240.01016.96
8.3.160.0270.00517.41
8.3.150.0200.01316.83
8.3.140.0190.01016.70
8.3.130.0190.00617.52
8.3.120.0220.00918.62
8.3.110.0220.00517.36
8.3.100.0220.00816.64
8.3.90.0280.00321.48
8.3.80.0200.00917.41
8.3.70.0240.01316.53
8.3.60.0200.01316.69
8.3.50.0230.01016.49
8.3.40.0220.00819.76
8.3.30.0190.00618.13
8.3.20.0160.00820.95
8.3.10.0160.00521.20
8.3.00.0130.01022.06
8.2.300.0210.01220.83
8.2.290.0190.00917.62
8.2.280.0180.01017.39
8.2.270.0130.00516.83
8.2.260.0120.00417.41
8.2.250.0090.00417.35
8.2.240.0110.00217.82
8.2.230.0100.00318.69
8.2.220.0110.00320.25
8.2.210.0100.00321.60
8.2.200.0080.00617.18
8.2.190.0130.00616.49
8.2.180.0120.00516.44
8.2.170.0120.00518.32
8.2.160.0110.00520.36
8.2.150.0090.00421.72
8.2.140.0080.00421.15
8.2.130.0090.00321.90
8.2.120.0150.00518.58
8.2.110.0100.00319.83
8.2.100.0110.00417.73
8.2.90.0100.00618.06
8.2.80.0120.00517.84
8.2.70.0180.00417.61
8.2.60.0160.00817.42
8.2.50.0210.00517.51
8.2.40.0170.00817.55
8.2.30.0200.00517.54
8.2.20.0220.00717.55
8.2.10.0250.00717.59
8.2.00.0200.00917.40
8.1.340.0200.00817.72
8.1.330.0210.01015.97
8.1.320.0240.00716.79
8.1.310.0240.00817.19
8.1.300.0190.00616.93
8.1.290.0160.00623.33
8.1.280.0200.00720.94
8.1.270.0150.00721.02
8.1.260.0140.00621.91
8.1.250.0170.00622.84
8.1.240.0180.00320.54
8.1.230.0160.00720.10
8.1.220.0190.00617.69
8.1.210.0180.00618.14
8.1.200.0180.00517.42
8.1.190.0220.01017.02
8.1.180.0160.01217.29
8.1.170.0170.00417.20
8.1.160.0150.00717.27
8.1.150.0180.00717.19
8.1.140.0190.00317.24
8.1.130.0170.00517.36
8.1.120.0130.00817.36
8.1.110.0150.00817.24
8.1.100.0190.00417.30
8.1.90.0200.00617.28
8.1.80.0190.00717.21
8.1.70.0190.00417.40
8.1.60.0230.00517.46
8.1.50.0230.00417.47
8.1.40.0240.00617.53
8.1.30.0260.00517.57
8.1.20.0250.00517.40
8.1.10.0210.00817.33
8.1.00.0190.00917.22
8.0.300.0170.00418.31
8.0.290.0160.00516.78
8.0.280.0210.00816.60
8.0.270.0190.00716.62
8.0.260.0190.00816.72
8.0.250.0150.01216.61
8.0.240.0220.00316.60
8.0.230.0230.00516.65
8.0.220.0200.00616.73
8.0.210.0170.00916.56
8.0.200.0200.00616.80
8.0.190.0180.00716.67
8.0.180.0150.01016.77
8.0.170.0210.00416.52
8.0.160.0220.00516.72
8.0.150.0240.00316.68
8.0.140.0180.00716.57
8.0.130.0200.00616.54
8.0.120.0210.00716.50
8.0.110.0230.00316.60
8.0.100.0260.00316.64
8.0.90.0210.00616.58
8.0.80.0210.00616.60
8.0.70.0170.00816.53
8.0.60.0180.00916.66
8.0.50.0160.00816.58
8.0.30.0210.00416.59
8.0.20.0210.00416.74
8.0.10.0210.00516.69

preferences:
101.49 ms | 403 KiB | 5 Q