3v4l.org

run code in 300+ PHP versions simultaneously
<?php const ZERO = 0.0; const MINUS_ZERO = -ZERO; $minus_zero = -ZERO; var_dump(MINUS_ZERO); var_dump($minus_zero);

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.00.0140.00819.79
8.4.150.0030.00014.05
8.4.140.0130.00717.70
8.4.130.0110.01017.69
8.4.120.0120.00820.36
8.4.110.0120.00722.59
8.4.100.0140.00617.78
8.4.90.0130.00718.77
8.4.80.0110.00919.42
8.4.70.0060.00317.63
8.4.60.0110.01018.78
8.4.50.0130.00718.87
8.4.40.0060.01220.27
8.4.30.0090.00922.10
8.4.20.0040.01218.87
8.4.10.0070.01423.45
8.3.280.0160.00818.05
8.3.270.0260.00716.54
8.3.260.0160.00816.85
8.3.250.0030.00618.98
8.3.240.0110.00616.68
8.3.230.0130.00616.59
8.3.220.0030.00417.05
8.3.210.0100.01018.60
8.3.200.0040.00516.62
8.3.190.0090.00617.05
8.3.180.0110.01016.38
8.3.170.0040.00718.94
8.3.160.0090.01016.99
8.3.150.0120.00617.16
8.3.140.0090.00616.34
8.3.130.0040.00418.32
8.3.120.0060.00318.90
8.3.110.0070.00318.25
8.3.100.0050.00318.33
8.3.90.0100.00326.77
8.3.80.0040.00718.31
8.3.70.0120.00316.63
8.3.60.0110.01116.63
8.3.50.0180.00416.73
8.3.40.0150.00021.91
8.3.30.0120.00318.45
8.3.20.0070.00024.18
8.3.10.0080.00024.66
8.3.00.0000.00826.16
8.2.290.0060.00722.30
8.2.280.0060.00318.20
8.2.270.0090.00917.31
8.2.260.0070.00716.66
8.2.250.0030.00618.40
8.2.240.0090.00617.07
8.2.230.0090.00020.94
8.2.220.0080.00024.06
8.2.210.0120.00326.77
8.2.200.0050.00516.38
8.2.190.0180.00016.58
8.2.180.0070.01116.38
8.2.170.0090.00919.02
8.2.160.0110.00422.96
8.2.150.0090.00025.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0060.00319.26
8.2.110.0100.00019.45
8.2.100.0040.00817.72
8.2.90.0080.00017.69
8.2.80.0040.00419.16
8.2.70.0080.00017.63
8.2.60.0110.00717.25
8.2.50.0120.00617.38
8.2.40.0160.00017.38
8.2.30.0100.00717.38
8.2.20.0140.00317.00
8.2.10.0120.00417.24
8.2.00.0080.00817.38
8.1.330.0130.00523.59
8.1.320.0150.00616.09
8.1.310.0100.00716.57
8.1.300.0060.00316.53
8.1.290.0000.01030.84
8.1.280.0100.01025.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0030.00622.14
8.1.230.0040.00820.95
8.1.220.0040.00417.79
8.1.210.0000.00818.88
8.1.200.0060.00317.35
8.1.190.0140.00216.88
8.1.180.0160.00017.00
8.1.170.0040.01217.35
8.1.160.0080.00817.00
8.1.150.0070.01117.11
8.1.140.0060.01017.38
8.1.130.0160.00216.98
8.1.120.0090.00917.13
8.1.110.0170.00017.25
8.1.100.0100.00617.34
8.1.90.0120.00317.13
8.1.80.0100.00517.13
8.1.70.0130.00317.10
8.1.60.0140.00517.24
8.1.50.0110.00717.38
8.1.40.0140.00317.22
8.1.30.0150.00217.38
8.1.20.0150.00317.48
8.1.10.0090.00917.38
8.1.00.0130.00517.25
8.0.300.0000.00720.12
8.0.290.0000.00716.75
8.0.280.0150.00316.59
8.0.270.0190.00016.63
8.0.260.0170.00016.52
8.0.250.0100.00716.63
8.0.240.0140.00316.63
8.0.230.0140.00216.61
8.0.220.0110.00516.52
8.0.210.0150.00316.52
8.0.200.0160.00016.63
8.0.190.0130.00416.60
8.0.180.0070.01116.63
8.0.170.0120.00416.52
8.0.160.0070.01016.75
8.0.150.0110.00516.52
8.0.140.0080.00816.75
8.0.130.0120.00316.52
8.0.120.0100.00516.52
8.0.110.0140.00316.52
8.0.100.0160.00016.52
8.0.90.0150.00016.62
8.0.80.0080.00816.63
8.0.70.0090.01216.52
8.0.60.0160.00016.52
8.0.50.0170.00016.52
8.0.30.0090.00916.63
8.0.20.0110.00616.63
8.0.10.0160.00016.88

preferences:
104.25 ms | 403 KiB | 5 Q