3v4l.org

run code in 300+ PHP versions simultaneously
<?php $instance = new class {}; $c = get_class($instance); $buf = substr($c, -14); $class_name = "class@anonymous".chr(0).__FILE__.$buf; eval("$class_name extends stdClass {};"); var_dump(new $class_name);

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.0070.00717.00
8.3.50.0090.01321.84
8.3.40.0090.00618.67
8.3.30.0070.00718.93
8.3.20.0040.00420.52
8.3.10.0020.00521.84
8.3.00.0080.00019.38
8.2.180.0070.01418.46
8.2.170.0060.00822.96
8.2.160.0140.00020.37
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00619.23
8.2.120.0000.00826.35
8.2.110.0000.00920.23
8.2.100.0160.00017.71
8.2.90.0110.00017.61
8.2.80.0000.00817.97
8.2.70.0080.00017.89
8.2.60.0090.00018.04
8.2.50.0090.00018.10
8.2.40.0070.00020.42
8.2.30.0040.00420.56
8.2.20.0090.00017.80
8.2.10.0040.00418.07
8.2.00.0040.00418.04
8.1.280.0140.00325.92
8.1.270.0000.01024.01
8.1.260.0040.00428.09
8.1.250.0000.00828.09
8.1.240.0060.00322.17
8.1.230.0070.00420.36
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.65
8.1.160.0000.00721.93
8.1.150.0030.00518.82
8.1.140.0090.00019.57
8.1.130.0000.00717.70
8.1.120.0070.00017.37
8.1.110.0060.00317.48
8.1.100.0060.00317.47
8.1.90.0000.00817.50
8.1.80.0000.00717.45
8.1.70.0000.00717.38
8.1.60.0040.00417.58
8.1.50.0040.00417.52
8.1.40.0030.00617.48
8.1.30.0040.00417.49
8.1.20.0040.00417.66
8.1.10.0030.00617.47
8.1.00.0000.00817.40
8.0.300.0030.00619.70
8.0.290.0040.00416.75
8.0.280.0030.00318.45
8.0.270.0040.00417.25
8.0.260.0060.00017.26
8.0.250.0000.00616.93
8.0.240.0080.00017.01
8.0.230.0040.00417.03
8.0.220.0000.00716.86
8.0.210.0030.00617.02
8.0.200.0030.00316.91
8.0.190.0000.00716.93
8.0.180.0000.00716.87
8.0.170.0000.00817.00
8.0.160.0030.00316.86
8.0.150.0070.00016.80
8.0.140.0030.00516.82
8.0.130.0050.00013.57
8.0.120.0000.00816.78
8.0.110.0040.00416.91
8.0.100.0000.00816.85
8.0.90.0040.00417.05
8.0.80.0100.01116.96
8.0.70.0020.00516.84
8.0.60.0000.00716.98
8.0.50.0050.00316.96
8.0.30.0110.00617.15
8.0.20.0070.01217.40
8.0.10.0040.00417.12
8.0.00.0070.01016.76
7.4.330.0020.00216.97
7.4.320.0000.00816.60
7.4.300.0030.00316.50
7.4.290.0000.00716.36
7.4.280.0040.00716.60
7.4.270.0070.00016.54
7.4.260.0000.01016.61
7.4.250.0040.00416.45
7.4.240.0040.00316.60
7.4.230.0030.00316.50
7.4.220.0040.02216.63
7.4.210.0070.00716.53
7.4.200.0030.00316.48
7.4.160.0130.00316.55
7.4.150.0150.00617.40
7.4.140.0150.00717.86
7.4.130.0050.01116.49
7.4.120.0120.00716.56
7.4.110.0120.01216.57
7.4.100.0070.01116.48
7.4.90.0160.00016.54
7.4.80.0180.00019.39
7.4.70.0130.00316.64
7.4.60.0130.00616.64
7.4.50.0030.01216.40
7.4.40.0060.00916.46
7.4.30.0140.00916.55
7.4.10.0040.01514.93
7.4.00.0160.00214.92
7.3.330.0050.00013.47
7.3.320.0050.00013.36
7.3.310.0070.00016.51
7.3.300.0000.00716.30
7.3.290.0040.00416.29
7.3.280.0070.01216.44
7.3.270.0040.01317.40
7.3.260.0140.00616.48
7.3.250.0140.00416.43
7.3.240.0100.01116.44
7.3.230.0060.00916.59
7.3.210.0070.01016.68
7.3.200.0040.01816.46
7.3.190.0040.01216.37
7.3.180.0140.00716.38
7.3.170.0080.00816.53
7.3.160.0070.01016.56
7.3.130.0060.01215.11
7.3.120.0110.00715.07
7.3.110.0160.00314.75
7.3.100.0070.00714.88
7.3.90.0030.01314.87
7.3.80.0100.00614.68
7.3.70.0120.00015.06
7.3.60.0090.00614.90
7.3.50.0070.00714.76
7.3.40.0060.00314.98
7.3.30.0060.00914.80
7.3.20.0110.00316.51
7.3.10.0060.00916.66
7.3.00.0040.00816.70
7.2.330.0110.00716.48
7.2.320.0060.02116.71
7.2.310.0110.00716.66
7.2.300.0100.00616.60
7.2.290.0160.00616.85
7.2.260.0060.01215.12
7.2.250.0090.00915.02
7.2.240.0090.00615.32
7.2.230.0040.01115.03
7.2.220.0060.00315.46
7.2.210.0050.00315.08
7.2.200.0030.01115.07
7.2.190.0000.01614.96
7.2.180.0040.00415.14
7.2.170.0090.00614.88
7.2.160.0100.00015.19
7.2.150.0070.01017.10
7.2.140.0040.01117.03
7.2.130.0070.00716.85
7.2.120.0030.01016.93
7.2.110.0100.00017.02
7.2.100.0150.00016.94
7.2.90.0110.00716.98
7.2.80.0150.00416.98
7.2.70.0030.00817.03
7.2.60.0060.01017.08
7.2.50.0060.00917.02
7.2.40.0060.01016.76
7.2.30.0040.01217.04
7.2.20.0060.00616.93
7.2.10.0080.00516.76
7.2.00.0070.01018.28
7.1.330.0030.01015.98
7.1.320.0090.00615.72
7.1.310.0100.00715.93
7.1.300.0030.01015.80
7.1.290.0060.00915.79
7.1.280.0030.00915.89
7.1.270.0000.01115.78
7.1.260.0030.01215.99
7.1.250.0030.01015.88
7.1.240.0070.00315.82
7.1.230.0060.00916.04
7.1.220.0000.01515.93
7.1.210.0130.00315.92
7.1.200.0050.00715.77
7.1.190.0000.01615.75
7.1.180.0000.00915.89
7.1.170.0060.01015.85
7.1.160.0070.00715.95
7.1.150.0080.00815.93
7.1.140.0060.00615.97
7.1.130.0050.00516.02
7.1.120.0030.00615.73
7.1.110.0060.00616.12
7.1.100.0050.00816.98
7.1.90.0090.00615.95
7.1.80.0060.00915.91
7.1.70.0070.00316.47
7.1.60.0020.01317.58
7.1.50.0100.00816.33
7.1.40.0040.01115.66
7.1.30.0070.01015.98
7.1.20.0120.00415.91
7.1.10.0070.00715.84
7.1.00.0030.04319.21
7.0.330.0090.00315.41
7.0.320.0030.00615.63
7.0.310.0070.00315.46
7.0.300.0130.00315.41
7.0.290.0060.00615.20
7.0.280.0040.01115.38
7.0.270.0100.00015.38
7.0.260.0040.01115.36
7.0.250.0030.01015.42
7.0.240.0090.00615.61
7.0.230.0060.00615.69
7.0.220.0030.00915.41
7.0.210.0070.00715.57
7.0.200.0190.00615.07
7.0.190.0000.01815.50
7.0.180.0000.01715.34
7.0.170.0000.01415.69
7.0.160.0070.01015.41
7.0.150.0000.01315.48
7.0.140.0030.00915.49
7.0.130.0130.00015.41
7.0.120.0050.00515.40
7.0.110.0030.01415.50
7.0.100.0040.01415.25
7.0.90.0050.00615.45
7.0.80.0040.00415.23
7.0.70.0070.00715.57
7.0.60.0060.03217.66
7.0.50.0030.03716.72
7.0.40.0080.03116.88
7.0.30.0250.02516.98
7.0.20.0110.02416.87
7.0.10.0050.04716.96
7.0.00.0080.04216.90
5.6.400.0120.00413.75
5.6.390.0030.01014.32
5.6.380.0060.00314.10
5.6.370.0110.00313.97
5.6.360.0060.00914.09
5.6.350.0100.00714.08
5.6.340.0060.00914.02
5.6.330.0070.00714.24
5.6.320.0030.00914.23
5.6.310.0060.00914.29
5.6.300.0070.00714.25
5.6.290.0070.00714.32
5.6.280.0110.02217.55
5.6.270.0000.01014.34
5.6.260.0040.01113.95
5.6.250.0070.00714.23
5.6.240.0000.01214.21
5.6.230.0030.01014.11
5.6.220.0070.00713.97
5.6.210.0050.04017.48
5.6.200.0030.03616.04
5.6.190.0030.02917.19
5.6.180.0190.04217.25
5.6.170.0130.04417.20
5.6.160.0030.04817.17
5.6.150.0090.02416.11
5.6.140.0070.04316.13
5.6.130.0080.02316.26
5.6.120.0030.02617.65
5.6.110.0080.02217.51
5.6.100.0080.03717.59
5.6.90.0070.05217.57
5.6.80.0070.04417.22
5.6.70.0030.00614.13
5.6.60.0000.01414.10
5.6.50.0000.01313.88
5.6.40.0080.00814.29
5.6.30.0140.00313.98
5.6.20.0030.01314.09
5.6.10.0040.00814.09
5.6.00.0040.00714.04
5.5.380.0030.00914.08
5.5.370.0070.00713.71
5.5.360.0040.00813.98
5.5.350.2080.02017.16
5.5.340.0120.02515.97
5.5.330.0080.04517.12
5.5.320.0070.04217.15
5.5.310.0120.02317.27
5.5.300.0010.04116.02
5.5.290.0050.04215.98
5.5.280.0030.03017.41
5.5.270.0040.02417.32
5.5.260.0080.04417.48
5.5.250.0110.01717.14
5.5.240.0100.04517.16
5.5.230.0030.00613.86
5.5.220.0040.00814.07
5.5.210.0100.00713.96
5.5.200.0040.01214.16
5.5.190.0120.00313.95
5.5.180.0030.01214.25
5.5.170.0040.00413.97
5.5.160.0000.01413.89
5.5.150.0070.00314.19
5.5.140.0060.00613.78
5.5.130.0060.00613.96
5.5.120.0100.00314.05
5.5.110.0090.00614.02
5.5.100.0060.00614.01
5.5.90.0030.00713.96
5.5.80.0060.00613.72
5.5.70.0030.00813.90
5.5.60.0070.00714.18
5.5.50.0070.00313.81
5.5.40.0060.00513.73
5.5.30.0030.00513.73
5.5.20.0100.00714.13
5.5.10.0090.00914.26
5.5.00.0080.00813.92

preferences:
44.03 ms | 401 KiB | 5 Q