3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Book { function info(){ $infoOne = 'title'; $this->$infoOne(); } function title(){ print 'The weird side of PHP'; } } $book = new Book(); $funcname = 'info'; $book->$funcname(); ?>

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.0030.01218.40
8.3.50.0110.00316.51
8.3.40.0060.00918.68
8.3.30.0080.00618.54
8.3.20.0040.00421.76
8.3.10.0040.00420.21
8.3.00.0080.00020.57
8.2.180.0090.00618.16
8.2.170.0150.00322.96
8.2.160.0080.00622.13
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00420.48
8.2.110.0050.00520.40
8.2.100.0040.00817.78
8.2.90.0030.00517.50
8.2.80.0090.00018.84
8.2.70.0040.00417.48
8.2.60.0090.00018.03
8.2.50.0020.00518.07
8.2.40.0000.00819.65
8.2.30.0040.00417.54
8.2.20.0070.00017.89
8.2.10.0040.00419.16
8.2.00.0030.00319.16
8.1.280.0060.00925.92
8.1.270.0070.00020.64
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00018.92
8.1.230.0040.00817.76
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.10
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00320.69
8.1.160.0000.00718.82
8.1.150.0000.00718.86
8.1.140.0040.00422.12
8.1.130.0040.00420.07
8.1.120.0070.00417.29
8.1.110.0040.00417.25
8.1.100.0000.00717.41
8.1.90.0040.00417.39
8.1.80.0000.00717.41
8.1.70.0060.00317.38
8.1.60.0070.00417.57
8.1.50.0000.00717.48
8.1.40.0040.00417.40
8.1.30.0000.00817.53
8.1.20.0030.00917.59
8.1.10.0030.00517.55
8.1.00.0000.00817.51
8.0.300.0060.00318.77
8.0.290.0050.00316.63
8.0.280.0000.00718.49
8.0.270.0000.00718.00
8.0.260.0040.00420.12
8.0.250.0030.00316.89
8.0.240.0030.00316.80
8.0.230.0000.00816.90
8.0.220.0000.00716.82
8.0.210.0000.00616.69
8.0.200.0000.00716.90
8.0.190.0000.00816.82
8.0.180.0070.00316.73
8.0.170.0060.00316.84
8.0.160.0040.00416.86
8.0.150.0000.00716.81
8.0.140.0000.00816.81
8.0.130.0050.00013.23
8.0.120.0050.00316.74
8.0.110.0040.00416.94
8.0.100.0000.00816.77
8.0.90.0000.00916.61
8.0.80.0110.00416.75
8.0.70.0040.00416.66
8.0.60.0040.00416.63
8.0.50.0000.00716.87
8.0.30.0090.00916.81
8.0.20.0070.01716.90
8.0.10.0000.00816.75
8.0.00.0140.00316.70
7.4.330.0050.00015.55
7.4.320.0000.00716.35
7.4.300.0000.00716.51
7.4.290.0040.00416.51
7.4.280.0080.00016.59
7.4.270.0030.00316.60
7.4.260.0030.00313.26
7.4.250.0030.00316.37
7.4.240.0020.00616.52
7.4.230.0030.00316.32
7.4.220.0030.00316.62
7.4.210.0080.00816.54
7.4.200.0070.00016.41
7.4.130.0120.00616.55
7.4.120.0190.00316.64
7.4.110.0100.00616.42
7.4.100.0190.00316.50
7.4.90.0130.00316.52
7.4.80.0070.01719.39
7.4.70.0100.00616.63
7.4.60.0070.01316.46
7.4.50.0110.00416.43
7.4.40.0060.01016.35
7.4.00.0100.00514.82
7.3.330.0070.00016.26
7.3.320.0050.00013.09
7.3.310.0040.00216.24
7.3.300.0000.00716.16
7.3.290.0030.00316.11
7.3.280.0130.00716.14
7.3.260.0000.01616.16
7.3.230.0000.01616.16
7.3.210.0030.01416.34
7.3.200.0070.01016.52
7.3.190.0040.01216.54
7.3.180.0060.00916.43
7.3.170.0030.01316.41
7.3.160.0080.01416.23
7.3.120.0080.00814.64
7.3.110.0130.00514.78
7.3.100.0060.01414.80
7.3.90.0050.01014.71
7.3.80.0090.00914.62
7.3.70.0090.00914.62
7.3.60.0050.00814.75
7.3.50.0020.01214.57
7.3.40.0050.01014.59
7.3.30.0080.00714.48
7.3.20.0080.00815.66
7.3.10.0020.01015.55
7.3.00.0030.00915.57
7.2.330.0100.00716.52
7.2.320.0070.01016.48
7.2.310.0060.01016.66
7.2.300.0130.00716.56
7.2.290.0090.00816.43
7.2.250.0090.00714.90
7.2.240.0100.01014.94
7.2.230.0060.01415.01
7.2.220.0040.01214.85
7.2.210.0070.01014.92
7.2.200.0060.00914.98
7.2.190.0100.00514.65
7.2.180.0070.01214.90
7.2.170.0050.01014.94
7.2.160.0090.00614.73
7.2.150.0110.00416.57
7.2.140.0060.00616.85
7.2.130.0070.01016.97
7.2.120.0040.01216.98
7.2.110.0000.01516.87
7.2.100.0080.01116.66
7.2.90.0070.00716.75
7.2.80.0040.01116.68
7.2.70.0070.00716.91
7.2.60.0040.00816.89
7.2.50.0070.00716.95
7.2.40.0100.00616.82
7.2.30.0070.00717.00
7.2.20.0090.00616.95
7.2.10.0080.00816.78
7.2.00.0030.00616.75
7.1.330.0080.00813.72
7.1.320.0140.00513.58
7.1.310.0030.01713.48
7.1.300.0090.00913.63
7.1.290.0120.00913.71
7.1.280.0030.01013.79
7.1.270.0070.01113.60
7.1.260.0090.00613.83

preferences:
43.82 ms | 400 KiB | 5 Q