3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types = 1); class A{ protected $stuff; function __construct(int $foo){ $this->stuff = $foo; } function getStuff(): int{ return $this->stuff; } } $x = new A(10); eval('$y = ' . var_export($x, true)); $y->getStuff();

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.00716.88
8.3.50.0110.00921.98
8.3.40.0110.00418.96
8.3.30.0110.00418.88
8.3.20.0000.00720.33
8.3.10.0040.00423.70
8.3.00.0030.00619.51
8.2.180.0150.00718.29
8.2.170.0070.01422.96
8.2.160.0060.00920.41
8.2.150.0030.00724.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0000.01017.50
8.2.110.0070.01422.25
8.2.100.0100.00318.04
8.2.90.0030.00619.08
8.2.80.0080.00017.97
8.2.70.0050.00317.75
8.2.60.0040.00417.93
8.2.50.0000.00918.07
8.2.40.0000.00819.16
8.2.30.0000.00820.63
8.2.20.0000.00817.80
8.2.10.0000.00818.11
8.2.00.0030.00618.04
8.1.280.0120.00325.92
8.1.270.0030.00623.83
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.50
8.1.230.0120.00017.53
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0040.00417.48
8.1.190.0080.00317.35
8.1.180.0070.00018.10
8.1.170.0030.00518.70
8.1.160.0040.00421.97
8.1.150.0050.00318.76
8.1.140.0030.00519.49
8.1.130.0030.00317.70
8.1.120.0000.00717.50
8.1.110.0000.00817.46
8.1.100.0030.00517.34
8.1.90.0040.00417.49
8.1.80.0080.00017.29
8.1.70.0030.00317.47
8.1.60.0000.00717.59
8.1.50.0000.00817.57
8.1.40.0040.00417.55
8.1.30.0060.00317.59
8.1.20.0060.00317.71
8.1.10.0040.00417.58
8.1.00.0060.00417.52
8.0.300.0000.00818.77
8.0.290.0040.00416.75
8.0.280.0000.00718.45
8.0.270.0070.00017.27
8.0.260.0000.00617.21
8.0.250.0050.00316.98
8.0.240.0000.00716.93
8.0.230.0040.00417.07
8.0.220.0030.00316.86
8.0.210.0040.00416.79
8.0.200.0070.00016.85
8.0.190.0040.00417.00
8.0.180.0000.00716.86
8.0.170.0000.00716.85
8.0.160.0030.00517.00
8.0.150.0070.00016.93
8.0.140.0040.00416.80
8.0.130.0000.00513.39
8.0.120.0060.00316.87
8.0.110.0040.00416.85
8.0.100.0000.00716.91
8.0.90.0050.00216.86
8.0.80.0100.00716.95
8.0.70.0070.00017.02
8.0.60.0030.00516.91
8.0.50.0060.00316.83
8.0.30.0180.00517.08
8.0.20.0080.01117.40
8.0.10.0040.00416.93
8.0.00.0080.01116.83
7.4.330.0000.00715.08
7.4.320.0070.00016.38
7.4.300.0000.00616.59
7.4.290.0070.00016.37
7.4.280.0000.00716.45
7.4.270.0020.00516.53
7.4.260.0000.00716.56
7.4.250.0020.00516.49
7.4.240.0070.00016.55
7.4.230.0030.00316.42
7.4.220.0000.02716.52
7.4.210.0050.00916.54
7.4.200.0000.00716.58
7.4.160.0060.00916.38
7.4.150.0100.00917.40
7.4.140.0100.01017.86
7.4.130.0090.00916.43
7.4.120.0060.01116.64
7.4.110.0000.01816.66
7.4.100.0070.01716.59
7.4.90.0070.01016.68
7.4.80.0070.01419.39
7.4.70.0110.00616.58
7.4.60.0160.00016.45
7.4.50.0080.00016.45
7.4.40.0080.00916.36
7.4.30.0070.01116.49
7.4.00.0030.01114.77
7.3.330.0020.00213.14
7.3.320.0000.00613.39
7.3.310.0070.00016.32
7.3.300.0080.00016.32
7.3.290.0000.00716.41
7.3.280.0080.00816.34
7.3.270.0100.00717.40
7.3.260.0170.00716.32
7.3.240.0080.01016.46
7.3.230.0130.00316.40
7.3.210.0110.01116.59
7.3.200.0120.00416.47
7.3.190.0130.00316.39
7.3.180.0160.00316.35
7.3.170.0070.01016.51
7.3.160.0130.00316.41
7.3.10.0000.01416.54
7.3.00.0070.00516.63
7.2.330.0060.01316.62
7.2.320.0060.01316.78
7.2.310.0040.01416.51
7.2.300.0090.00916.75
7.2.290.0160.00616.66
7.2.130.0030.00716.95
7.2.120.0090.00516.97
7.2.110.0030.00816.92
7.2.100.0050.00716.90
7.2.90.0070.00616.89
7.2.80.0000.01016.95
7.2.70.0090.00516.99
7.2.60.0030.01116.91
7.2.50.0070.00816.91
7.2.40.0060.00616.95
7.2.30.0050.00716.94
7.2.20.0070.00916.67
7.2.10.0030.00716.87
7.2.00.0030.00817.57
7.1.250.0080.00315.80
7.1.240.0080.00415.77
7.1.230.0060.00615.94
7.1.220.0040.00715.86
7.1.210.0060.00615.82
7.1.200.0050.00615.71
7.1.190.0060.00315.59
7.1.180.0050.00516.02
7.1.170.0000.01015.65
7.1.160.0060.00615.77
7.1.150.0040.00415.80
7.1.140.0090.00315.59
7.1.130.0030.00715.85
7.1.120.0030.01215.60
7.1.110.0040.00815.67
7.1.100.0070.00916.99
7.1.90.0070.00715.75
7.1.80.0040.00715.60
7.1.70.0040.01116.33
7.1.60.0130.00717.69
7.1.50.0050.00816.47
7.1.40.0030.00915.73
7.1.30.0090.00315.77
7.1.20.0040.00415.78
7.1.10.0000.00915.44
7.1.00.0030.04219.08
7.0.330.0030.00615.12
7.0.320.0020.00515.43
7.0.310.0070.00315.53
7.0.300.0030.00715.39
7.0.290.0000.01315.41
7.0.280.0000.00915.47
7.0.270.0060.00615.43
7.0.260.0070.00015.43
7.0.250.0000.01115.39
7.0.240.0030.00615.23
7.0.230.0030.00615.22
7.0.220.0000.00815.32
7.0.210.0030.00615.47
7.0.200.0450.00215.02
7.0.190.0060.00615.24
7.0.180.0030.00715.21
7.0.170.0060.00615.37
7.0.160.0060.00815.31
7.0.150.0100.00315.29
7.0.140.0040.00415.46
7.0.130.0090.00615.04
7.0.120.0030.00515.36
7.0.110.0070.00715.19
7.0.100.0000.01215.39
7.0.90.0000.00815.25
7.0.80.0000.01015.35
7.0.70.0000.01015.38
7.0.60.0100.02817.77
7.0.50.0020.02816.70
7.0.40.0100.04316.78
7.0.30.0150.02116.60
7.0.20.0200.02316.80
7.0.10.0100.04016.76
7.0.00.0060.04916.74
5.6.380.0050.00314.01
5.6.370.0100.00014.18
5.6.360.0110.00413.97
5.6.350.0080.00014.19
5.6.340.0040.01114.53
5.6.330.0060.00613.97
5.6.320.0090.00313.78
5.6.310.0030.00914.13
5.6.300.0030.00614.35
5.6.290.0130.00013.93
5.6.280.0050.03417.74
5.6.270.0100.00314.29
5.6.260.0030.01014.18
5.6.250.0000.01014.32
5.6.240.0000.01014.04
5.6.230.0080.00314.16
5.6.220.0000.01513.87
5.6.210.0070.04417.30
5.6.200.0070.04216.18
5.6.190.0130.04117.26
5.6.180.0200.02717.26
5.6.170.0220.04317.24
5.6.160.0020.02617.35
5.6.150.0090.03016.17
5.6.140.0090.03716.17
5.6.130.0100.03716.09
5.6.120.0030.04917.49
5.6.110.0080.04317.55
5.6.100.0050.02517.61
5.6.90.0160.03717.44
5.6.80.0070.02817.15
5.6.70.0030.01014.13
5.6.60.0000.01214.08
5.6.50.0040.00713.98
5.6.40.0080.00814.27
5.6.30.0030.00614.16
5.6.20.0070.00413.88
5.6.10.0000.01413.93
5.6.00.0070.00413.85
5.5.380.0060.00310.95
5.5.370.0000.00910.95
5.5.360.0000.00510.99
5.5.350.0200.03415.76
5.5.340.0030.04514.48
5.5.330.0090.04215.60
5.5.320.0220.03515.63
5.5.310.0210.02515.66
5.5.300.0030.02914.40
5.5.290.0060.02114.52
5.5.280.0030.03115.88
5.5.270.0050.04115.77
5.5.260.0020.02815.87
5.5.250.0090.03715.58
5.5.240.0060.04115.45
5.5.230.0000.00710.79
5.5.220.0040.00410.87
5.5.210.0030.00510.87
5.5.200.0040.00410.75
5.5.190.0030.00310.88
5.5.180.0030.00710.49
5.5.170.0040.00411.05
5.5.160.0060.00610.57
5.5.150.0080.00410.91
5.5.140.0030.00610.98
5.5.130.0000.00610.67
5.5.120.0070.00410.73
5.5.110.0030.00710.73
5.5.100.0100.00010.85
5.5.90.0060.00610.78
5.5.80.0030.00310.75
5.5.70.0030.00510.76
5.5.60.0070.00410.97
5.5.50.0080.00310.71
5.5.40.0040.00410.98
5.5.30.0000.00610.98
5.5.20.0000.00610.80
5.5.10.0040.00810.70
5.5.00.0000.01010.92
5.4.450.0100.03015.05
5.4.440.0120.02315.24
5.4.430.0150.03915.13
5.4.420.0170.03814.88
5.4.410.0080.03215.10
5.4.400.0200.03014.79
5.4.390.0100.03314.95
5.4.380.0160.03514.86
5.4.370.0170.03014.89
5.4.360.0150.03214.75
5.4.350.0120.04515.03
5.4.340.0170.03414.77
5.4.330.0000.00810.80
5.4.320.0180.03815.00
5.4.310.0180.03115.04
5.4.300.0120.02715.05
5.4.290.0130.03515.03
5.4.280.0150.03914.88
5.4.270.0130.03114.94
5.4.260.0180.03314.84
5.4.250.0100.03815.07
5.4.240.0150.02914.81
5.4.230.0140.02815.13
5.4.220.0150.03715.03
5.4.210.0120.02115.07
5.4.200.0120.03214.88
5.4.190.0220.02514.95
5.4.180.0100.04114.99
5.4.170.0100.03014.88
5.4.160.0150.03514.78
5.4.150.0120.03414.98
5.4.140.0170.03113.64
5.4.130.0130.02013.42
5.4.120.0070.02913.56
5.4.110.0120.03713.63
5.4.100.0130.03913.69
5.4.90.0170.03313.68
5.4.80.0000.00810.80
5.4.70.0030.00910.85
5.4.60.0080.00310.83
5.4.50.0030.00710.75
5.4.40.0000.00810.61
5.4.30.0030.00610.73
5.4.20.0000.00610.83
5.4.10.0060.00010.50
5.4.00.0000.00710.85

preferences:
45.96 ms | 401 KiB | 5 Q