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("new $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.0110.00416.63
8.3.50.0110.01121.99
8.3.40.0070.00719.03
8.3.30.0140.00018.96
8.3.20.0070.00020.37
8.3.10.0080.00021.85
8.3.00.0080.00019.50
8.2.180.0190.00318.56
8.2.170.0040.01122.96
8.2.160.0060.01320.38
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0030.00517.50
8.2.120.0080.00026.35
8.2.110.0030.00622.13
8.2.100.0100.00018.03
8.2.90.0050.00517.63
8.2.80.0080.00017.97
8.2.70.0040.00417.68
8.2.60.0040.00417.92
8.2.50.0100.00018.10
8.2.40.0040.00420.62
8.2.30.0000.00720.73
8.2.20.0040.00417.66
8.2.10.0000.00718.13
8.2.00.0000.00718.05
8.1.280.0170.00025.92
8.1.270.0090.00023.86
8.1.260.0000.00728.09
8.1.250.0040.00428.09
8.1.240.0030.00622.15
8.1.230.0070.00718.94
8.1.220.0060.00317.79
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0000.01218.55
8.1.160.0050.00322.05
8.1.150.0050.00318.76
8.1.140.0030.00619.48
8.1.130.0000.00717.74
8.1.120.0050.00317.53
8.1.110.0000.00717.45
8.1.100.0000.00717.34
8.1.90.0040.00417.34
8.1.80.0040.00417.42
8.1.70.0000.00817.45
8.1.60.0040.00417.46
8.1.50.0080.00017.51
8.1.40.0030.01017.39
8.1.30.0000.00817.51
8.1.20.0040.00417.57
8.1.10.0000.00717.56
8.1.00.0070.00317.40
8.0.300.0000.00719.77
8.0.290.0080.00016.75
8.0.280.0030.00318.44
8.0.270.0030.00317.17
8.0.260.0000.00617.17
8.0.250.0030.00316.87
8.0.240.0060.00317.07
8.0.230.0000.00817.03
8.0.220.0000.00816.98
8.0.210.0070.00017.06
8.0.200.0000.00617.04
8.0.190.0040.00417.04
8.0.180.0030.00516.95
8.0.170.0050.00316.88
8.0.160.0050.00317.00
8.0.150.0000.00816.91
8.0.140.0040.00416.81
8.0.130.0060.00013.53
8.0.120.0050.00216.78
8.0.110.0040.00416.95
8.0.100.0040.00416.79
8.0.90.0000.00716.84
8.0.80.0060.01217.00
8.0.70.0050.00216.78
8.0.60.0000.00716.84
8.0.50.0040.00416.98
8.0.30.0030.01517.08
8.0.20.0100.00817.40
8.0.10.0070.00017.12
8.0.00.0100.00816.74
7.4.330.0050.00016.77
7.4.320.0040.00416.60
7.4.300.0000.00616.60
7.4.290.0040.00416.59
7.4.280.0040.00416.50
7.4.270.0000.00716.66
7.4.260.0030.00316.63
7.4.250.0000.00816.56
7.4.240.0020.00516.49
7.4.230.0000.00716.52
7.4.220.0070.01116.65
7.4.210.0030.01216.53
7.4.200.0040.00416.62
7.4.160.0120.00816.59
7.4.150.0000.01717.40
7.4.140.0200.00417.86
7.4.130.0060.01116.52
7.4.120.0090.00916.54
7.4.110.0120.00616.59
7.4.100.0150.00616.48
7.4.90.0090.01216.59
7.4.80.0030.01319.39
7.4.70.0230.00316.59
7.4.60.0030.01416.32
7.4.50.0120.00316.66
7.4.40.0120.00416.65
7.4.30.0070.01416.48
7.4.10.0030.01616.29
7.4.00.0050.01015.38
7.3.330.0060.00013.39
7.3.320.0050.00013.36
7.3.310.0000.00716.39
7.3.300.0030.00316.38
7.3.290.0040.00416.35
7.3.280.0120.00516.42
7.3.270.0090.00617.40
7.3.260.0120.01216.76
7.3.250.0110.00816.55
7.3.240.0040.01416.56
7.3.230.0130.00316.59
7.3.210.0100.00716.61
7.3.200.0080.00816.39
7.3.190.0060.00916.44
7.3.180.0060.01016.68
7.3.170.0090.00716.68
7.3.160.0040.01116.57
7.3.130.0110.00316.36
7.3.120.0070.01015.58
7.3.110.0060.00915.73
7.3.100.0050.01315.57
7.3.90.0070.00915.45
7.3.80.0050.00915.81
7.3.70.0100.00715.52
7.3.60.0050.00815.72
7.3.50.0030.01415.71
7.3.40.0040.01215.67
7.3.30.0030.01015.63
7.3.20.0090.00517.52
7.3.10.0030.01017.12
7.3.00.0070.00817.09
7.2.330.0070.01016.76
7.2.320.0070.01416.73
7.2.310.0070.01016.73
7.2.300.0070.01116.70
7.2.290.0090.01316.62
7.2.260.0040.01516.87
7.2.250.0070.01115.76
7.2.240.0070.00715.72
7.2.230.0110.00615.81
7.2.220.0110.00315.90
7.2.210.0050.01015.86
7.2.200.0070.01015.80
7.2.190.0030.01115.95
7.2.180.0090.00515.79
7.2.170.0070.00815.75
7.2.160.0040.01116.65
7.2.150.0070.01318.48
7.2.140.0070.00718.39
7.2.130.0120.00317.44
7.2.120.0070.00717.71
7.2.110.0050.01117.57
7.2.100.0070.00717.50
7.2.90.0090.00817.63
7.2.80.0090.00517.54
7.2.70.0050.01217.63
7.2.60.0090.00817.38
7.2.50.0080.01117.49
7.2.40.0070.01017.63
7.2.30.0030.01217.78
7.2.20.0060.01117.58
7.2.10.0030.01117.50
7.2.00.0030.00818.25
7.1.330.0080.00716.63
7.1.320.0060.01016.54
7.1.310.0070.00816.58
7.1.300.0060.00816.46
7.1.290.0090.00616.56
7.1.280.0090.00516.54
7.1.270.0050.00716.37
7.1.260.0030.01016.43
7.1.250.0060.00816.43
7.1.240.0060.00317.26
7.1.230.0000.01317.33
7.1.220.0000.01817.30
7.1.210.0070.00717.21
7.1.200.0140.00616.39
7.1.190.0040.01117.38
7.1.180.0060.00917.48
7.1.170.0070.00717.36
7.1.160.0040.00817.39
7.1.150.0130.00317.45
7.1.140.0000.01317.39
7.1.130.0090.00317.36
7.1.120.0060.01017.31
7.1.110.0030.00917.40
7.1.100.0080.00617.53
7.1.90.0060.00317.11
7.1.80.0040.01117.47
7.1.70.0070.00717.35
7.1.60.0090.01118.53
7.1.50.0020.01217.23
7.1.40.0000.01317.48
7.1.30.0040.00817.47
7.1.20.0040.01117.49
7.1.10.0070.01017.53
7.1.00.0080.03719.87
7.0.330.0040.01116.82
7.0.320.0120.00016.89
7.0.310.0040.01117.12
7.0.300.0030.01317.14
7.0.290.0040.00717.10
7.0.280.0100.00717.21
7.0.270.0000.01017.10
7.0.260.0030.00716.86
7.0.250.0000.01616.88
7.0.240.0040.01217.12
7.0.230.0090.00317.13
7.0.220.0000.01317.22
7.0.210.0080.01117.10
7.0.200.0300.00515.93
7.0.190.0040.00716.96
7.0.180.0040.01117.07
7.0.170.0060.01016.98
7.0.160.0130.00317.11
7.0.150.0070.01017.02
7.0.140.0000.01417.06
7.0.130.0110.00316.88
7.0.120.0060.00616.95
7.0.110.0030.00617.00
7.0.100.0120.00017.00
7.0.90.0040.00716.88
7.0.80.0030.00616.95
7.0.70.0000.01216.84
7.0.60.0030.02319.41
7.0.50.0050.04617.45
7.0.40.0070.04717.53
7.0.30.0160.04517.64
7.0.20.0150.02117.60
7.0.10.0030.02717.58
7.0.00.0020.05017.64
5.6.400.0000.01815.50
5.6.390.0100.00315.63
5.6.380.0100.00715.71
5.6.370.0080.00415.56
5.6.360.0090.00615.68
5.6.350.0070.00715.30
5.6.340.0030.01315.71
5.6.330.0000.01215.62
5.6.320.0090.00315.82
5.6.310.0150.00015.62
5.6.300.0060.00615.71
5.6.290.0060.00615.66
5.6.280.0100.03118.14
5.6.270.0040.01115.71
5.6.260.0080.00315.46
5.6.250.0040.00815.58
5.6.240.0030.00615.61
5.6.230.0050.00515.66
5.6.220.0040.01215.57
5.6.210.0050.04518.15
5.6.200.0050.04016.99
5.6.190.0100.02318.00
5.6.180.0220.03617.94
5.6.170.0150.02517.97
5.6.160.0070.04718.04
5.6.150.0050.04016.85
5.6.140.0050.02916.89
5.6.130.0060.03816.98
5.6.120.0050.03118.32
5.6.110.0070.02218.20
5.6.100.0060.04618.16
5.6.90.0100.04218.28
5.6.80.0080.02018.06
5.6.70.0140.00315.39
5.6.60.0110.00815.54
5.6.50.0130.00315.45
5.6.40.0120.00015.45
5.6.30.0000.00815.56
5.6.20.0110.00815.52
5.6.10.0060.01015.45
5.6.00.0130.00315.52
5.5.380.0120.00315.36
5.5.370.0000.01215.63
5.5.360.0000.01215.43
5.5.350.2040.02217.86
5.5.340.0090.04016.89
5.5.330.0110.04217.84
5.5.320.0030.04317.85
5.5.310.0100.04817.91
5.5.300.0080.04016.65
5.5.290.0070.04516.65
5.5.280.0050.02218.08
5.5.270.0060.02018.12
5.5.260.0110.02118.13
5.5.250.0070.02917.93
5.5.240.0210.03317.73
5.5.230.0200.00015.37
5.5.220.0030.01615.38
5.5.210.0100.01015.42
5.5.200.0070.01015.26
5.5.190.0170.00015.23
5.5.180.0070.00715.30
5.5.170.0040.01415.58
5.5.160.0070.00715.29
5.5.150.0060.00915.21
5.5.140.0040.01115.41
5.5.130.0000.01115.39
5.5.120.0040.01115.39
5.5.110.0030.01015.36
5.5.100.0030.01415.46
5.5.90.0070.01015.43
5.5.80.0070.01015.44
5.5.70.0030.01015.34
5.5.60.0060.00615.37
5.5.50.0040.01115.28
5.5.40.0080.00815.45
5.5.30.0100.00015.32
5.5.20.0070.00715.57
5.5.10.0030.01015.42
5.5.00.0060.00615.08

preferences:
50.27 ms | 401 KiB | 5 Q