3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassThatExists { // } $class = new ClassThatExists(); if ($class instanceof NonExistentClass) { var_dump('instanceof NonExistentClass'); } if ($class instanceof ClassThatExists) { var_dump('instanceof ClassThatExists'); }

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.130.0050.00518.46
8.3.120.0030.00618.76
8.3.110.0080.00016.66
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00318.30
8.3.70.0120.00918.18
8.3.60.0090.00618.30
8.3.50.0120.00617.44
8.3.40.0220.00817.58
8.3.30.0120.01017.53
8.3.20.0240.00518.53
8.3.10.0160.01018.75
8.3.00.0210.00718.62
8.2.250.0040.00419.14
8.2.240.0030.00618.91
8.2.230.0060.00320.94
8.2.220.0080.00837.54
8.2.210.0080.00026.77
8.2.200.0060.00318.41
8.2.190.0040.01416.58
8.2.180.0290.00516.02
8.2.170.0220.00419.33
8.2.160.0190.01018.15
8.2.150.0230.00619.38
8.2.140.0270.00319.13
8.2.130.0230.00819.56
8.2.120.0210.00817.82
8.2.110.0250.00218.02
8.2.100.0230.00417.35
8.2.90.0240.00317.40
8.2.80.0230.00417.37
8.2.70.0170.00917.31
8.2.60.0190.00917.29
8.2.50.0200.00817.42
8.2.40.0200.00617.50
8.2.30.0160.00517.46
8.2.20.0180.00417.40
8.2.10.0170.00617.70
8.2.00.0170.00717.39
8.1.300.0040.00418.29
8.1.290.0000.01130.84
8.1.280.0230.00315.79
8.1.270.0110.00418.05
8.1.260.0230.00719.24
8.1.250.0190.00820.30
8.1.240.0160.00918.05
8.1.230.0190.00718.34
8.1.220.0240.00317.62
8.1.210.0230.00417.50
8.1.200.0220.00417.06
8.1.190.0200.00816.95
8.1.180.0190.00917.65
8.1.170.0180.00917.28
8.1.160.0180.00717.45
8.1.150.0160.00817.39
8.1.140.0150.00918.11
8.1.130.0150.00917.63
8.1.120.0190.00517.50
8.1.110.0170.00617.16
8.1.100.0150.00817.49
8.1.90.0130.01017.57
8.1.80.0170.00417.52
8.1.70.0160.00517.55
8.1.60.0230.00417.24
8.1.50.0210.00517.19
8.1.40.0180.00817.20
8.1.30.0170.00817.39
8.1.20.0200.00717.34
8.1.10.0200.00917.28
8.1.00.0240.00417.63
8.0.300.0210.00817.60
8.0.290.0220.00616.52
8.0.280.0190.00716.70
8.0.270.0180.00716.58
8.0.260.0190.00616.73
8.0.250.0170.00616.52
8.0.240.0170.00716.48
8.0.230.0170.00516.48
8.0.220.0150.00716.46
8.0.210.0170.00516.44
8.0.200.0140.00916.49
8.0.190.0170.00616.56
8.0.180.0150.00816.34
8.0.170.0170.00516.90
8.0.160.0170.00516.53
8.0.150.0170.00516.42
8.0.140.0170.00416.43
8.0.130.0140.00615.81
8.0.120.0200.00316.45
8.0.110.0160.00716.40
8.0.100.0170.00516.39
8.0.90.0210.00416.45
8.0.80.0150.01016.53
8.0.70.0190.00616.86
8.0.60.0200.00416.50
8.0.50.0180.00616.56
8.0.30.0180.00716.59
8.0.20.0210.00516.52
8.0.10.0180.00516.90
8.0.00.0110.00816.99
7.4.330.0170.00415.86
7.4.320.0190.00316.19
7.4.300.0180.00416.29
7.4.290.0170.00616.24
7.4.280.0150.00716.24
7.4.270.0180.00516.17
7.4.260.0180.00616.25
7.4.250.0180.00616.18
7.4.240.0160.00816.25
7.4.230.0170.00616.12
7.4.220.0160.00616.13
7.4.210.0160.00616.30
7.4.200.0150.00616.54
7.4.190.0220.00516.61
7.4.180.0200.00616.12
7.4.160.0160.00716.28
7.4.150.0210.00516.08
7.4.140.0130.01017.06
7.4.130.0220.00216.19
7.4.120.0160.00916.08
7.4.110.0190.00616.47
7.4.100.0180.00616.62
7.4.90.0180.00516.18
7.4.80.0140.00917.02
7.4.70.0170.00716.48
7.4.60.0180.00516.15
7.4.50.0160.00616.07
7.4.40.0140.00916.37
7.4.30.0180.00716.08
7.4.20.0200.00616.12
7.4.10.0170.00816.04
7.4.00.0160.00715.81
7.3.330.0160.00615.32
7.3.320.0170.00615.74
7.3.310.0160.00416.29
7.3.300.0180.00415.96
7.3.290.0160.00615.95
7.3.280.0150.00716.11
7.3.270.0230.00415.94
7.3.260.0170.00716.12
7.3.250.0190.00815.93
7.3.240.0220.00415.98
7.3.230.0160.00815.96
7.3.220.0160.00916.43
7.3.210.0200.00516.30
7.3.200.0160.00916.31
7.3.190.0170.00815.97
7.3.180.0170.00716.00
7.3.170.0210.00416.00
7.3.160.0180.00715.96
7.3.150.0230.00315.84
7.3.140.0220.00515.87
7.3.130.0220.00615.88
7.3.120.0190.00515.90
7.3.110.0210.00515.83
7.3.100.0200.00616.20
7.3.90.0230.00316.04
7.3.80.0220.00615.83
7.3.70.0180.00615.71
7.3.60.0170.00716.07
7.3.50.0200.00315.77
7.3.40.0190.00715.76
7.3.30.0170.00915.54
7.3.20.0230.00417.21
7.3.10.0250.00716.71
7.3.00.0220.00716.69
7.2.340.0180.00716.02
7.2.330.0180.00616.34
7.2.320.0170.00616.09
7.2.310.0180.00616.09
7.2.300.0170.00716.07
7.2.290.0160.00816.02
7.2.280.0190.00616.05
7.2.270.0220.00416.45
7.2.260.0190.00616.48
7.2.250.0220.00415.96
7.2.240.0180.00816.47
7.2.230.0190.00516.00
7.2.220.0200.00515.98
7.2.210.0210.00415.97
7.2.200.0170.00615.82
7.2.190.0170.00515.88
7.2.180.0160.00615.85
7.2.170.0150.00615.83
7.2.160.0160.00615.98
7.2.150.0220.00417.41
7.2.140.0180.00617.40
7.2.130.0290.00417.08
7.2.120.0260.00517.00
7.2.110.0250.00717.02
7.2.100.0250.00617.11
7.2.90.0220.00717.00
7.2.80.0230.00717.13
7.2.70.0260.00817.01
7.2.60.0260.00817.06
7.2.50.0240.00616.95
7.2.40.0280.00716.97
7.2.30.0240.00717.08
7.2.20.0270.00517.11
7.2.10.0280.00617.12
7.2.00.0370.00517.04
7.1.330.0220.00516.86
7.1.320.0210.00416.99
7.1.310.0190.00517.01
7.1.300.0150.00916.28
7.1.290.0160.00616.37
7.1.280.0180.00516.33
7.1.270.0190.00316.34
7.1.260.0180.00616.42
7.1.250.0220.00615.98
7.1.240.0180.00616.95
7.1.230.0190.00516.87
7.1.220.0180.00717.00
7.1.210.0160.00617.04
7.1.200.0200.00416.99
7.1.190.0200.00616.98
7.1.180.0200.00416.83
7.1.170.0150.00916.87
7.1.160.0160.00916.97
7.1.150.0170.00817.02
7.1.140.0200.00416.93
7.1.130.0220.00416.93
7.1.120.0200.00616.94
7.1.110.0190.00516.81
7.1.100.0180.00516.94
7.1.90.0200.00416.82
7.1.80.0200.00516.91
7.1.70.0170.00716.82
7.1.60.0210.00316.95
7.1.50.0190.00817.05
7.1.40.0190.00516.89
7.1.30.0180.00716.92
7.1.20.0180.00516.82
7.1.10.0180.00516.85
7.1.00.0180.00616.89
7.0.330.0170.00616.63

preferences:
25.91 ms | 403 KiB | 5 Q