3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reference = 0; if (is_int($this->reference) && $this->reference == 0) { var_dump('0'); } $reference = 'ex-1'; if (is_int($this->reference) && $this->reference == 0) { var_dump('ex-1'); }

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.0110.00818.41
8.3.50.0110.00416.21
8.3.40.0030.01218.64
8.3.30.0040.01118.89
8.3.20.0000.00721.92
8.3.10.0030.00723.70
8.3.00.0080.00019.78
8.2.180.0120.00618.54
8.2.170.0080.00818.91
8.2.160.0100.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00726.16
8.2.120.0000.00819.23
8.2.110.0070.00322.24
8.2.100.0040.00819.51
8.2.90.0000.00817.63
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0060.00317.80
8.2.50.0040.00418.10
8.2.40.0070.00320.60
8.2.30.0020.00519.47
8.2.20.0080.00018.05
8.2.10.0040.00417.92
8.2.00.0000.00818.11
8.1.280.0070.00725.92
8.1.270.0080.00022.05
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00720.56
8.1.230.0070.00419.17
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0040.00417.36
8.1.190.0080.00017.11
8.1.180.0040.00418.10
8.1.170.0030.00518.58
8.1.160.0070.00018.80
8.1.150.0030.00320.17
8.1.140.0000.00717.63
8.1.130.0000.00819.05
8.1.120.0000.00817.29
8.1.110.0000.00817.34
8.1.100.0050.00217.41
8.1.90.0040.00417.28
8.1.80.0040.00417.24
8.1.70.0040.00417.37
8.1.60.0000.00817.52
8.1.50.0030.00617.43
8.1.40.0040.00417.45
8.1.30.0000.00817.51
8.1.20.0000.00817.60
8.1.10.0050.00217.57
8.1.00.0000.00817.46
8.0.300.0000.00819.60
8.0.290.0080.00016.63
8.0.280.0000.00718.38
8.0.270.0000.00717.19
8.0.260.0080.00016.72
8.0.250.0040.00416.96
8.0.240.0030.00316.81
8.0.230.0070.00016.92
8.0.220.0060.00316.92
8.0.210.0000.00616.90
8.0.200.0040.00417.00
8.0.190.0060.00316.78
8.0.180.0040.00416.83
8.0.170.0030.00616.93
8.0.160.0000.00816.92
8.0.150.0030.00716.72
8.0.140.0050.00216.85
8.0.130.0000.00613.29
8.0.120.0040.00416.82
8.0.110.0040.00416.75
8.0.100.0030.00316.85
8.0.90.0000.00816.90
8.0.80.0060.01016.80
8.0.70.0000.00716.90
8.0.60.0000.00716.95
8.0.50.0000.00816.92
8.0.30.0120.00517.02
8.0.20.0120.00717.40
8.0.10.0040.00417.04
8.0.00.0080.01016.55
7.4.330.0000.00515.55
7.4.320.0070.00016.43
7.4.300.0000.00616.48
7.4.290.0030.00316.61
7.4.280.0030.00516.45
7.4.270.0000.00716.63
7.4.260.0070.00016.60
7.4.250.0040.00416.58
7.4.240.0070.00016.41
7.4.230.0040.00416.53
7.4.220.0000.00716.60
7.4.210.0020.01216.66
7.4.200.0000.00716.60
7.4.160.0060.00916.54
7.4.150.0030.01517.40
7.4.140.0110.00917.86
7.4.130.0080.00816.60
7.4.120.0070.01216.50
7.4.110.0160.00616.51
7.4.100.0070.01116.46
7.4.90.0070.01016.46
7.4.80.0090.00919.39
7.4.70.0100.01016.72
7.4.60.0090.00916.64
7.4.50.0030.01316.82
7.4.40.0060.01016.61
7.4.00.0090.00615.16
7.3.330.0000.00513.10
7.3.320.0030.00313.14
7.3.310.0000.00716.27
7.3.300.0050.00216.22
7.3.290.0030.00316.18
7.3.280.0050.01216.24
7.3.270.0080.00817.40
7.3.260.0110.00716.27
7.3.240.0040.01216.29
7.3.230.0030.01316.37
7.3.210.0120.01216.22
7.3.200.0060.01116.55
7.3.190.0060.01516.61
7.3.180.0070.00716.58
7.3.170.0130.00316.25
7.3.160.0000.02316.41
7.2.330.0070.01016.68
7.2.320.0040.01916.51
7.2.310.0130.00616.32
7.2.300.0060.01016.64
7.2.290.0000.01916.32
7.2.60.0060.00616.75
7.2.20.0120.01319.60
7.2.10.0080.01819.43
7.2.00.0100.01219.64
7.1.200.0030.00915.70
7.1.140.0080.01418.42
7.1.130.0090.01218.21
7.1.120.0050.01218.63
7.1.110.0150.01018.11
7.1.100.0100.00917.89
7.1.90.0130.01117.47
7.1.80.0070.01117.65
7.1.70.0070.01117.08
7.1.60.0240.01335.06
7.1.50.0250.01634.82
7.1.40.0250.01834.05
7.1.30.0260.01634.29
7.1.20.0230.01634.52
7.1.10.0100.01416.34
7.1.00.0090.01316.44

preferences:
57.07 ms | 400 KiB | 5 Q