3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo = null; if ($foo instanceof UnknownClass) { echo "foo"; } echo "bar";

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.0140.00316.25
8.3.50.0060.01221.98
8.3.40.0140.00018.70
8.3.30.0030.01018.35
8.3.20.0040.00421.83
8.3.10.0000.00821.77
8.3.00.0040.00817.38
8.2.180.0100.01016.50
8.2.170.0090.00622.96
8.2.160.0190.00020.14
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0040.00418.09
8.2.120.0070.00026.35
8.2.110.0060.00319.02
8.2.100.0030.01017.78
8.2.90.0060.00317.75
8.2.80.0030.00617.97
8.2.70.0000.00817.79
8.2.60.0080.00018.09
8.2.50.0080.00018.10
8.2.40.0050.00320.64
8.2.30.0040.00419.18
8.2.20.0040.00417.92
8.2.10.0040.00417.86
8.2.00.0050.00217.54
8.1.280.0150.00625.92
8.1.270.0040.00420.13
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0040.00817.23
8.1.230.0040.00717.76
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.10
8.1.190.0100.00517.00
8.1.180.0040.00418.10
8.1.170.0040.00418.80
8.1.160.0040.00418.85
8.1.150.0030.00320.25
8.1.140.0070.00019.59
8.1.130.0000.00718.96
8.1.120.0030.00317.28
8.1.110.0000.00717.40
8.1.100.0070.00017.36
8.1.90.0040.00417.31
8.1.80.0000.00717.32
8.1.70.0060.00317.38
8.1.60.0040.00417.43
8.1.50.0040.00417.29
8.1.40.0040.00417.48
8.1.30.0050.00317.59
8.1.20.0040.00417.56
8.1.10.0040.00417.56
8.1.00.0030.00617.41
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.34
8.0.270.0040.00417.18
8.0.260.0030.00317.20
8.0.250.0070.00016.82
8.0.240.0030.00316.75
8.0.230.0000.00716.92
8.0.220.0070.00016.81
8.0.210.0030.00316.65
8.0.200.0000.00616.94
8.0.190.0000.00816.77
8.0.180.0050.00316.84
8.0.170.0040.00416.82
8.0.160.0000.00716.92
8.0.150.0030.00616.71
8.0.140.0030.00316.67
8.0.130.0000.00613.20
8.0.120.0030.00516.71
8.0.110.0030.00616.86
8.0.100.0060.00316.70
8.0.90.0000.00716.68
8.0.80.0030.01316.79
8.0.70.0080.00016.87
8.0.60.0070.00016.81
8.0.50.0000.00716.83
8.0.30.0090.01116.89
8.0.20.0060.01217.40
8.0.10.0000.00716.73
8.0.00.0150.00316.87
7.4.330.0050.00015.55
7.4.320.0000.00616.38
7.4.300.0060.00016.42
7.4.290.0040.00416.41
7.4.280.0000.00916.40
7.4.270.0000.00816.42
7.4.260.0000.00716.43
7.4.250.0000.00716.49
7.4.240.0000.00816.44
7.4.230.0030.00316.22
7.4.220.0190.01516.43
7.4.210.0040.01116.39
7.4.200.0070.00016.42
7.4.160.0120.00316.39
7.4.150.0100.00717.40
7.4.140.0100.01117.86
7.4.130.0070.01116.41
7.4.120.0100.00916.46
7.4.110.0090.00916.42
7.4.100.0160.00916.50
7.4.90.0140.00316.37
7.4.80.0080.00819.39
7.4.70.0060.00916.47
7.4.60.0000.01716.40
7.4.50.0050.00516.29
7.4.40.0030.01316.39
7.4.30.0100.00716.53
7.4.00.0120.00314.52
7.3.330.0000.00513.08
7.3.320.0020.00212.94
7.3.310.0030.00316.06
7.3.300.0030.00316.21
7.3.290.0060.00916.21
7.3.280.0090.00716.18
7.3.270.0090.00917.40
7.3.260.0050.01616.22
7.3.250.0110.00716.35
7.3.240.0110.00816.36
7.3.230.0130.00316.28
7.3.210.0090.00816.54
7.3.200.0130.00416.51
7.3.190.0030.01916.40
7.3.180.0030.01316.41
7.3.170.0030.01316.45
7.3.160.0030.01716.36
7.3.00.0080.00516.44
7.2.330.0100.00616.54
7.2.320.0030.01316.62
7.2.310.0030.01416.68
7.2.300.0160.00616.25
7.2.290.0090.00916.59
7.2.130.0070.01016.74
7.2.120.0100.00316.57
7.2.110.0060.00616.59
7.2.100.0130.00316.64
7.2.90.0030.00616.93
7.2.80.0130.00316.63
7.2.70.0090.00616.65
7.2.60.0050.01016.68
7.2.50.0000.01616.97
7.2.40.0100.00316.74
7.2.30.0060.01216.73
7.2.20.0060.00916.76
7.2.10.0090.00916.79
7.2.00.0070.00717.91
7.1.250.0030.00915.38
7.1.240.0140.00415.60
7.1.230.0040.01115.64
7.1.220.0130.00315.63
7.1.210.0120.00615.61
7.1.200.0070.00715.57
7.1.190.0000.01515.59
7.1.180.0030.01015.35
7.1.170.0100.00315.69
7.1.160.0070.01015.64
7.1.150.0110.00315.80
7.1.140.0070.01115.79
7.1.130.0120.00315.59
7.1.120.0100.00615.48
7.1.110.0140.00315.68
7.1.100.0080.00716.54
7.1.90.0060.00615.43
7.1.80.0120.00015.21
7.1.70.0050.00816.22
7.1.60.0040.00916.37
7.1.50.0090.01016.12
7.1.40.0130.00315.40
7.1.30.0140.00315.57
7.1.20.0140.01015.63
7.1.10.0070.04218.95
7.1.00.0070.03219.00
7.0.330.0100.00715.23
7.0.320.0000.01615.05
7.0.310.0100.01015.24
7.0.300.0080.00815.30
7.0.290.0140.01115.38
7.0.280.0100.00815.30
7.0.270.0100.01015.39
7.0.260.0030.01214.89
7.0.250.0170.00815.55
7.0.240.0160.00315.27
7.0.230.0110.00515.13
7.0.220.0120.00915.11
7.0.210.0140.00315.08
7.0.200.0120.00815.97
7.0.190.0040.01115.34
7.0.180.0140.00715.55
7.0.170.0040.01515.31
7.0.160.0120.00415.03
7.0.150.0100.03218.39
7.0.140.0070.03418.63
7.0.130.0060.03418.61
7.0.120.0110.03218.59
7.0.110.0110.02818.48
7.0.100.0080.03218.46
7.0.90.0020.04318.54
7.0.80.0070.03318.46
7.0.70.0110.03018.56
7.0.60.0050.03318.65
7.0.50.0070.03518.70
7.0.40.0080.03417.63
7.0.30.0070.03017.66
7.0.20.0020.03617.50
7.0.10.0100.02717.56
7.0.00.0070.02717.57
5.6.380.0050.00514.09

preferences:
61.56 ms | 401 KiB | 5 Q