3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reference = 0; if (is_int($reference) && $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.0120.00618.36
8.3.50.0040.01116.25
8.3.40.0040.01118.79
8.3.30.0120.00318.83
8.3.20.0050.00321.97
8.3.10.0050.00523.65
8.3.00.0040.00419.68
8.2.180.0130.00918.79
8.2.170.0150.00019.21
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0060.00319.36
8.2.110.0090.00021.89
8.2.100.0080.00317.91
8.2.90.0000.00817.75
8.2.80.0060.00317.97
8.2.70.0080.00017.80
8.2.60.0040.00417.93
8.2.50.0000.00818.22
8.2.40.0090.00020.49
8.2.30.0000.00819.45
8.2.20.0030.00518.17
8.2.10.0040.00418.23
8.2.00.0000.00718.29
8.1.280.0110.00325.92
8.1.270.0060.00322.19
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.01
8.1.230.0110.00019.02
8.1.220.0030.00617.79
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0000.00817.35
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0070.00018.80
8.1.150.0080.00020.14
8.1.140.0070.00017.67
8.1.130.0080.00019.12
8.1.120.0000.00717.51
8.1.110.0000.00817.36
8.1.100.0040.00417.46
8.1.90.0000.00717.49
8.1.80.0030.00617.43
8.1.70.0050.00217.35
8.1.60.0070.00017.50
8.1.50.0030.00617.53
8.1.40.0040.00417.49
8.1.30.0000.00717.57
8.1.20.0000.00717.59
8.1.10.0030.00517.52
8.1.00.0040.00417.40
8.0.300.0040.00419.59
8.0.290.0040.00416.88
8.0.280.0030.00318.36
8.0.270.0070.00017.22
8.0.260.0080.00016.89
8.0.250.0050.00317.06
8.0.240.0000.00717.00
8.0.230.0030.00316.89
8.0.220.0040.00416.89
8.0.210.0060.00017.00
8.0.200.0030.00317.05
8.0.190.0060.00317.05
8.0.180.0080.00016.97
8.0.170.0030.00616.89
8.0.160.0050.00316.87
8.0.150.0030.00316.94
8.0.140.0030.00516.87
8.0.130.0000.00613.37
8.0.120.0040.00416.88
8.0.110.0040.00416.87
8.0.100.0060.00316.86
8.0.90.0000.00716.86
8.0.80.0120.00316.97
8.0.70.0000.00716.86
8.0.60.0000.00716.77
8.0.50.0050.00216.76
8.0.30.0080.01017.21
8.0.20.0070.01217.40
8.0.10.0050.00217.19
8.0.00.0060.01216.77
7.4.330.0000.00515.55
7.4.320.0030.00316.60
7.4.300.0040.00416.65
7.4.290.0030.00316.50
7.4.280.0040.00416.59
7.4.270.0030.00316.48
7.4.260.0000.00816.38
7.4.250.0050.00316.36
7.4.240.0030.00316.49
7.4.230.0030.00316.40
7.4.220.0040.00416.48
7.4.210.0070.00716.64
7.4.200.0000.00716.58
7.4.160.0070.00816.58
7.4.150.0070.01017.40
7.4.140.0100.00917.86
7.4.130.0110.00616.61
7.4.120.0090.00816.53
7.4.110.0060.01016.72
7.4.100.0030.01316.64
7.4.90.0180.00316.53
7.4.80.0150.00619.39
7.4.70.0090.01316.52
7.4.60.0070.01016.69
7.4.50.0140.00016.36
7.4.40.0130.00316.51
7.4.00.0080.00315.25
7.3.330.0000.00613.20
7.3.320.0030.00313.07
7.3.310.0070.00016.37
7.3.300.0000.00716.32
7.3.290.0070.00016.32
7.3.280.0100.00416.29
7.3.270.0070.01717.40
7.3.260.0140.00916.49
7.3.240.0130.00616.54
7.3.230.0040.01316.42
7.3.210.0170.00316.43
7.3.200.0170.00016.37
7.3.190.0070.01416.66
7.3.180.0120.00316.50
7.3.170.0070.01016.46
7.3.160.0190.00416.42
7.3.10.0030.00916.72
7.3.00.0020.01416.66
7.2.330.0000.01716.41
7.2.320.0090.00816.87
7.2.310.0080.01216.64
7.2.300.0120.00616.38
7.2.290.0140.00916.51
7.2.130.0040.01116.69
7.2.120.0060.00616.94
7.2.110.0110.00016.93
7.2.100.0030.01016.79
7.2.90.0030.01216.67
7.2.80.0030.00717.03
7.2.70.0000.01616.61
7.2.60.0080.00817.04
7.2.50.0030.00716.77
7.2.40.0060.01116.64
7.2.30.0100.00316.88
7.2.20.0050.01218.46
7.2.10.0050.01118.35
7.2.00.0040.01318.18
7.1.250.0040.00815.42
7.1.200.0110.00315.57
7.1.140.0060.01118.67
7.1.130.0060.01118.26
7.1.120.0080.00718.82
7.1.110.0040.01218.29
7.1.100.0050.01117.89
7.1.90.0060.01017.94
7.1.80.0100.00717.92
7.1.70.0110.00817.25
7.1.60.0270.01134.93
7.1.50.0260.01434.60
7.1.40.0270.01034.54
7.1.30.0200.01634.15
7.1.20.0220.01434.69
7.1.10.0060.01216.61
7.1.00.0040.01416.72

preferences:
56.13 ms | 401 KiB | 5 Q