3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x=5; // globel scope function myTest() { // using x inside a function is generate an error echo "<p> variable x inside function: $x</p>" } myTest(); ?>

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)
7.2.90.0530.00614.66
7.2.80.0850.01314.46
7.2.70.0470.01214.98
7.2.60.0810.01014.59
7.2.50.0570.00414.33
7.2.40.1030.01314.72
7.2.30.0660.00714.52
7.2.20.0820.01014.30
7.2.10.0800.00314.36
7.2.00.0990.01614.52
7.1.210.2540.00713.83
7.1.200.0810.00613.39
7.1.190.0620.01213.71
7.1.180.0760.00613.56
7.1.170.0500.00613.44
7.1.160.0800.00913.27
7.1.150.1120.00313.49
7.1.140.0820.00613.23
7.1.130.0990.00613.52
7.1.120.0630.01013.54
7.1.110.1210.00313.51
7.1.100.0440.01013.25
7.1.90.0470.01113.61
7.1.80.0460.01013.50
7.1.70.0790.00613.48
7.1.60.0660.00931.75
7.1.50.0680.00731.65
7.1.40.0670.01631.69
7.1.30.0730.00731.58
7.1.20.0710.01031.80
7.1.10.0590.00713.57
7.1.00.0610.00713.75
7.0.310.0890.01013.36
7.0.300.0720.00313.21
7.0.290.0830.00613.32
7.0.280.1060.00613.29
7.0.270.0810.00013.33
7.0.260.0490.00913.28
7.0.250.0590.00313.16
7.0.240.0490.00613.26
7.0.230.0670.00613.59
7.0.220.0480.00713.50
7.0.210.0810.01413.35
7.0.200.0490.00713.39
7.0.190.0640.00713.45
7.0.180.0610.00713.42
7.0.170.0580.00313.27
7.0.160.0590.00613.14
7.0.150.0740.00713.48
7.0.140.0620.01013.17
7.0.130.0680.00613.55
7.0.120.0720.00713.47
7.0.110.0640.00713.20
7.0.100.0640.00713.20
7.0.90.0660.01013.37
7.0.80.0710.00713.39
7.0.70.1690.00613.45
7.0.60.0660.01313.27
7.0.50.0700.00713.17
7.0.40.0720.00713.53
7.0.30.0710.00713.51
7.0.20.0860.00713.64
7.0.10.0860.00313.41
7.0.00.1000.00713.60

preferences:
144.48 ms | 1394 KiB | 7 Q