3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Something { public function otherThing(stdClass $canBeNullOrAnObject = null) { echo get_class($canBeNullOrAnObject); } } $s = new Something; $s->otherThing(); echo PHP_EOL; $s->otherThing(new stdClass);

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.70.0130.01016.61
8.3.60.0040.01116.50
8.3.50.0120.00622.11
8.3.40.0130.00318.72
8.3.30.0110.00718.70
8.3.20.0000.00820.26
8.3.10.0040.00423.61
8.3.00.0000.00819.38
8.2.180.0140.00318.54
8.2.170.0030.01022.96
8.2.160.0090.00422.16
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00317.50
8.2.120.0040.00426.35
8.2.110.0030.00620.35
8.2.100.0120.00017.92
8.2.90.0040.00419.17
8.2.80.0000.00917.97
8.2.70.0000.01617.00
8.2.60.0040.00418.04
8.2.50.0000.00818.07
8.2.40.0040.00419.27
8.2.30.0040.00420.56
8.2.20.0000.00917.67
8.2.10.0000.00718.04
8.2.00.0070.00017.90
8.1.280.0040.01125.92
8.1.270.0040.00723.84
8.1.260.0040.00428.09
8.1.250.0000.00728.09
8.1.240.0060.00322.48
8.1.230.0040.00717.52
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00717.36
8.1.190.0000.00817.35
8.1.180.0050.00318.10
8.1.170.0030.00618.32
8.1.160.0000.00721.86
8.1.150.0000.00718.83
8.1.140.0040.00419.46
8.1.130.0030.00617.69
8.1.120.0000.00717.36
8.1.110.0040.00417.41
8.1.100.0000.00817.27
8.1.90.0000.00717.39
8.1.80.0050.00217.45
8.1.70.0030.00317.20
8.1.60.0000.00817.57
8.1.50.0040.00417.51
8.1.40.0040.00417.50
8.1.30.0080.00017.64
8.1.20.0000.00917.67
8.1.10.0000.00717.54
8.1.00.0080.00017.55
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0080.00018.33
8.0.270.0040.00417.18
8.0.260.0030.00317.18
8.0.250.0080.00016.95
8.0.240.0000.00716.93
8.0.230.0000.00916.82
8.0.220.0030.00416.86
8.0.210.0040.00416.88
8.0.200.0030.00316.83
8.0.190.0000.00716.83
8.0.180.0000.01016.79
8.0.170.0000.01016.81
8.0.160.0080.00016.87
8.0.150.0050.00316.81
8.0.140.0070.00316.68
8.0.130.0000.00513.30
8.0.120.0040.00416.74
8.0.110.0000.00816.82
8.0.100.0030.00316.68
8.0.90.0040.00416.83
8.0.80.0070.01016.87
8.0.70.0050.00316.84
8.0.60.0040.00416.87
8.0.50.0080.00016.76
8.0.30.0140.00416.88
8.0.20.0060.01217.40
8.0.10.0040.00417.02
8.0.00.0090.00916.67
7.4.330.0000.00516.89
7.4.320.0060.00016.54
7.4.300.0000.00616.49
7.4.290.0000.00716.49
7.4.280.0070.00016.54
7.4.270.0030.00316.62
7.4.260.0000.00716.58
7.4.250.0040.00416.49
7.4.240.0050.00216.48
7.4.230.0070.00016.67
7.4.220.0100.00616.60
7.4.210.0030.01216.63
7.4.200.0070.00016.41
7.4.160.0120.00316.40
7.4.150.0100.00717.40
7.4.140.0080.01117.86
7.4.130.0120.00816.51
7.4.120.0070.01316.46
7.4.110.0110.00716.47
7.4.100.0130.00316.64
7.4.90.0120.00616.64
7.4.80.0090.01219.39
7.4.70.0160.00616.36
7.4.60.0140.00316.50
7.4.50.0060.00916.73
7.4.40.0130.00316.36
7.4.30.0060.01216.70
7.4.10.0090.00915.09
7.4.00.0090.00814.99
7.3.330.0050.00013.37
7.3.320.0000.00513.35
7.3.310.0000.00616.41
7.3.300.0070.00016.27
7.3.290.0060.00916.30
7.3.280.0100.00516.37
7.3.270.0110.00817.40
7.3.260.0100.01016.29
7.3.250.0090.00716.40
7.3.240.0090.00916.44
7.3.230.0030.01316.39
7.3.210.0000.01616.38
7.3.200.0060.01216.48
7.3.190.0120.01016.37
7.3.180.0070.01116.23
7.3.170.0040.01216.36
7.3.160.0000.01616.31
7.3.130.0100.01014.73
7.3.120.0090.00914.64
7.3.110.0080.01214.93
7.3.100.0120.00315.02
7.3.90.0070.00414.84
7.3.80.0000.01214.77
7.3.70.0030.00614.54
7.3.60.0070.00714.74
7.3.50.0060.00614.89
7.3.40.0000.01314.62
7.3.30.0030.00914.83
7.3.20.0030.00916.77
7.3.10.0070.00716.60
7.3.00.0040.01116.57
7.2.330.0120.00616.27
7.2.320.0060.01116.71
7.2.310.0100.01016.73
7.2.300.0130.00316.61
7.2.290.0120.00916.70
7.2.260.0060.01315.12
7.2.250.0070.01114.78
7.2.240.0040.01115.09
7.2.230.0090.00614.98
7.2.220.0000.01414.77
7.2.210.0040.01115.11
7.2.200.0100.00614.82
7.2.190.0000.00915.10
7.2.180.0000.01414.99
7.2.170.0080.00414.81
7.2.160.0080.00415.21
7.2.150.0040.00816.99
7.2.140.0070.00716.82
7.2.130.0000.01017.04
7.2.120.0030.00916.69
7.2.110.0000.00917.00
7.2.100.0060.00616.91
7.2.90.0000.01416.72
7.2.80.0030.00916.91
7.2.70.0030.01017.09
7.2.60.0060.00916.75
7.2.50.0100.00016.86
7.2.40.0030.00716.95
7.2.30.0000.01416.96
7.2.20.0040.01216.90
7.2.10.0070.00716.63
7.2.00.0110.00718.17
7.1.330.0070.00515.47
7.1.320.0040.01115.83
7.1.310.0120.00315.71
7.1.300.0070.00715.61
7.1.290.0040.01115.51
7.1.280.0080.00815.76
7.1.270.0000.00915.82
7.1.260.0040.01115.77
7.1.250.0030.00915.69
7.1.240.0030.00915.91
7.1.230.0000.00815.75
7.1.220.0030.01415.74
7.1.210.0030.01015.82
7.1.200.0030.00615.78
7.1.190.0060.00615.86
7.1.180.0000.01615.86
7.1.170.0000.01415.59
7.1.160.0040.00415.80
7.1.150.0030.00715.77
7.1.140.0040.01115.80
7.1.130.0000.01315.60
7.1.120.0080.00415.86
7.1.110.0030.01015.75
7.1.100.0020.01016.69
7.1.90.0070.00715.82
7.1.80.0000.01515.85
7.1.70.0020.00616.31
7.1.60.0100.01017.60
7.1.50.0040.01616.39
7.1.40.0060.00915.79
7.1.30.0030.01015.84
7.1.20.0080.00815.78
7.1.10.0030.00915.69
7.1.00.0030.04318.96
7.0.330.0060.00315.18
7.0.320.0080.00015.13
7.0.310.0120.00015.55
7.0.300.0030.01015.54
7.0.290.0030.00915.42
7.0.280.0000.01215.61
7.0.270.0070.00715.30
7.0.260.0090.00015.21
7.0.250.0070.00715.41
7.0.240.0060.01215.59
7.0.230.0070.00715.40
7.0.220.0040.01115.19
7.0.210.0000.00815.39
7.0.200.0050.00514.99
7.0.190.0000.01015.51
7.0.180.0000.00815.44
7.0.170.0060.00615.20
7.0.160.0000.01615.48
7.0.150.0090.00615.37
7.0.140.0060.00315.36
7.0.130.0040.01115.46
7.0.120.0070.00715.43
7.0.110.0030.00715.29
7.0.100.0060.00615.11
7.0.90.0060.01015.10
7.0.80.0070.00715.38
7.0.70.0040.00715.45
7.0.60.0030.04818.46
7.0.50.0090.04016.73
7.0.40.0110.04216.76
7.0.30.0130.04016.63
7.0.20.0170.04216.97
7.0.10.0080.02516.93
7.0.00.0040.04716.72
5.6.400.0000.01713.98
5.6.390.0060.00714.50
5.6.380.0070.00414.39
5.6.370.0050.00514.37
5.6.360.0120.00314.08
5.6.350.0000.00914.18
5.6.340.0070.00714.62
5.6.330.0060.00914.53
5.6.320.0000.00814.13
5.6.310.0070.00414.41
5.6.300.0030.01014.38
5.6.290.0110.00414.34
5.6.280.0040.03917.84
5.6.270.0040.01114.59
5.6.260.0060.00314.43
5.6.250.0000.01514.50
5.6.240.0000.01214.19
5.6.230.0040.01114.59
5.6.220.0030.00914.24
5.6.210.0030.02517.49
5.6.200.0020.03816.24
5.6.190.0100.04317.23
5.6.180.0230.02817.51
5.6.170.0130.02517.52
5.6.160.0070.04317.38
5.6.150.0010.05116.29
5.6.140.0100.01716.26
5.6.130.0090.04116.33
5.6.120.0040.04717.63
5.6.110.0110.04517.61
5.6.100.0020.04817.60
5.6.90.0080.03517.69
5.6.80.0110.03617.45
5.6.70.0070.00714.20
5.6.60.0000.00914.13
5.6.50.0000.01014.12
5.6.40.0030.01214.18
5.6.30.0040.01114.23
5.6.20.0110.00614.09
5.6.10.0050.00313.99
5.6.00.0110.00414.36
5.5.380.0000.01413.96
5.5.370.0000.01314.29
5.5.360.0060.00614.65
5.5.350.0100.02917.41
5.5.340.0080.03816.13
5.5.330.0090.02117.29
5.5.320.0230.02217.16
5.5.310.0080.02817.41
5.5.300.0110.03816.14
5.5.290.0080.02016.01
5.5.280.0050.03017.53
5.5.270.0050.03217.64
5.5.260.0070.04517.57
5.5.250.0070.04717.32
5.5.240.0120.03517.24
5.5.230.0060.00613.90
5.5.220.0070.00714.02
5.5.210.0140.00014.22
5.5.200.0090.00614.00
5.5.190.0090.00914.09
5.5.180.0060.00314.07
5.5.170.0030.01214.11
5.5.160.0110.00314.39
5.5.150.0140.00314.17
5.5.140.0070.00714.11
5.5.130.0060.00914.23
5.5.120.0070.00413.89
5.5.110.0000.00814.07
5.5.100.0030.01014.19
5.5.90.0070.00414.06
5.5.80.0030.01114.39
5.5.70.0030.00914.34
5.5.60.0040.01114.11
5.5.50.0000.01414.13
5.5.40.0030.00913.97
5.5.30.0070.00714.05
5.5.20.0060.00314.26
5.5.10.0030.00713.99
5.5.00.0100.00014.38

preferences:
68.89 ms | 401 KiB | 5 Q